git.iko.soy/rowtype-yoga/purs-eval
on main help sign in
ci: fix if logic
commit7d9aa370bbc52aa1959bfa75f31adbb060f76c31 authorWalker <walker@praiseweb.com.br> dateWed 2 Nov 2022, 04:43 (4 years ago) parent8c4f5d4
1 file changed+11−11
.github/workflows/release.yml+11−11
.github/workflows/release.yml+11−11
@@ -7,34 +7,34 @@ jobs:
77 release:
88 runs-on: ubuntu-latest
99 steps:
10+ - uses: google-github-actions/release-please-action@v3
11+ id: release
12+ with:
13+ release-type: node
14+ package-name: purs-eval
15+ release-as: 1.2.0
1016 - uses: actions/checkout@v3
17+ if: ${{ steps.release.outputs.release_created }}
1118 - uses: cachix/install-nix-action@v18
19+ if: ${{ steps.release.outputs.release_created }}
1220 with:
1321 extra_nix_config: |
1422 access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
1523 - uses: cachix/cachix-action@v12
24+ if: ${{ steps.release.outputs.release_created }}
1625 with:
1726 name: klarkc
1827 authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
1928 - run: nix build
20− - uses: google-github-actions/release-please-action@v3
21− id: release
22− with:
23− release-type: node
24− package-name: purs-eval
25− release-as: 1.2.0
26− # The logic below handles the npm publication:
27− # these if statements ensure that a publication only occurs when
28− # a new release is created:
2929 if: ${{ steps.release.outputs.release_created }}
3030 - uses: actions/setup-node@v3
31+ if: ${{ steps.release.outputs.release_created }}
3132 with:
3233 node-version: 18
3334 registry-url: 'https://registry.npmjs.org'
34− if: ${{ steps.release.outputs.release_created }}
3535 - run: npm ci
3636 if: ${{ steps.release.outputs.release_created }}
3737 - run: npm publish
38+ if: ${{ steps.release.outputs.release_created }}
3839 env:
3940 NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40− if: ${{ steps.release.outputs.release_created }}