Skip to content

Commit

Permalink
ci: fix if logic
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed Nov 2, 2022
1 parent 8c4f5d4 commit 7d9aa37
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: purs-eval
release-as: 1.2.0
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: cachix/install-nix-action@v18
if: ${{ steps.release.outputs.release_created }}
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
if: ${{ steps.release.outputs.release_created }}
with:
name: klarkc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: purs-eval
release-as: 1.2.0
# The logic below handles the npm publication:
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 7d9aa37

Please sign in to comment.