Skip to content

Commit

Permalink
Update remaining workflows to use nix
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed May 31, 2024
1 parent 8536c23 commit 10611a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 25 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: rustup target add wasm32-unknown-unknown
- run: npm run build
- run: npm run bundle
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop --command npm ci
- run: nix develop --command npm run build
- run: nix develop --command npm run bundle
- run: ls -lhR dist
- run: npm publish --tag next
- run: nix develop --command npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21 changes: 8 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: rustup target add wasm32-unknown-unknown
- run: sudo apt-get install -y binaryen
- run: npm run build
- run: npm run bundle
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop --command npm ci
- run: nix develop --command npm run build
- run: nix develop --command npm run bundle
- run: ls -lhR dist
- run: npm publish
- run: nix develop --command npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 10611a5

Please sign in to comment.