git.iko.soy/rowtype-yoga/purs-eval
on main help sign in
ci: fix if logic
7d9aa37Walker
.github/workflows/release.yml+11−11
@@ -7,34 +7,34 @@ jobs:
7 release:
7 release:
8 runs-on: ubuntu-latest
8 runs-on: ubuntu-latest
9 steps:
9 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
10 - uses: actions/checkout@v3
16 - uses: actions/checkout@v3
17+ if: ${{ steps.release.outputs.release_created }}
11 - uses: cachix/install-nix-action@v18
18 - uses: cachix/install-nix-action@v18
19+ if: ${{ steps.release.outputs.release_created }}
12 with:
20 with:
13 extra_nix_config: |
21 extra_nix_config: |
14 access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
22 access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
15 - uses: cachix/cachix-action@v12
23 - uses: cachix/cachix-action@v12
24+ if: ${{ steps.release.outputs.release_created }}
16 with:
25 with:
17 name: klarkc
26 name: klarkc
18 authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
27 authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
19 - run: nix build
28 - 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:
29 if: ${{ steps.release.outputs.release_created }}
29 if: ${{ steps.release.outputs.release_created }}
30 - uses: actions/setup-node@v3
30 - uses: actions/setup-node@v3
31+ if: ${{ steps.release.outputs.release_created }}
31 with:
32 with:
32 node-version: 18
33 node-version: 18
33 registry-url: 'https://registry.npmjs.org'
34 registry-url: 'https://registry.npmjs.org'
34− if: ${{ steps.release.outputs.release_created }}
35 - run: npm ci
35 - run: npm ci
36 if: ${{ steps.release.outputs.release_created }}
36 if: ${{ steps.release.outputs.release_created }}
37 - run: npm publish
37 - run: npm publish
38+ if: ${{ steps.release.outputs.release_created }}
38 env:
39 env:
39 NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40 NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40− if: ${{ steps.release.outputs.release_created }}