Skip to content

Commit

Permalink
fix: try to fix gh action to NOT publish existing npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
scraly committed Sep 12, 2023
1 parent aa6f19e commit c805253
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ jobs:
wget https://github.com/pulumi/pulumictl/releases/download/v0.0.42/pulumictl-v0.0.42-linux-amd64.tar.gz -O /tmp/pulumictl-v0.0.42-linux-amd64.tar.gz
tar -xvf /tmp/pulumictl-v0.0.42-linux-amd64.tar.gz -C /tmp
mv /tmp/pulumictl /usr/local/bin
# - name: Install pulumictl
# uses: jaxxstorm/action-install-gh-release@c5ead9a448b4660cf1e7866ee22e4dc56538031a # tag=v1.10.0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# repo: pulumi/pulumictl
- name: Get version
run: pulumictl get version --language generic
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
- uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3.1.1
Expand Down Expand Up @@ -122,12 +118,13 @@ jobs:
packages-dir: ${{github.workspace}}/sdk/python/bin/dist
skip-existing: true
- if: ${{ matrix.language == 'nodejs' && env.PUBLISH_NPM == 'true' }}
uses: JS-DevTools/npm-publish@5a85faf05d2ade2d5b6682bfe5359915d5159c6c # tag=v2.2.1
uses: JS-DevTools/[email protected]
with:
access: "public"
token: ${{ env.NPM_TOKEN }}
package: ${{github.workspace}}/sdk/nodejs/bin/package.json
provenance: true
strategy: upgrade
- if: ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
name: publish nuget package
run: |
Expand Down

0 comments on commit c805253

Please sign in to comment.