Skip to content

Commit e196dcf

Browse files
authored
fix: Ensure build before publish (#41)
1 parent a563705 commit e196dcf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release-please.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
env:
9+
CARGO_TERM_COLOR: always
10+
RUST_VERSION: 1.87.0
11+
812
permissions:
913
id-token: write # Required for OIDC
1014
contents: write
@@ -30,9 +34,13 @@ jobs:
3034
runs-on: ubuntu-latest
3135
steps:
3236
- uses: actions/checkout@v4
37+
- name: Install Rust ${{ env.RUST_VERSION }}
38+
run: rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt && rustup default ${{ env.RUST_VERSION }}
39+
- name: Cache
40+
uses: Swatinem/rust-cache@v2
3341
- uses: actions/setup-node@v4
3442
with:
35-
node-version: lts/*
36-
registry-url: 'https://registry.npmjs.org'
43+
node-version-file: 'package.json'
3744
- run: npm install -g npm@latest
45+
- run: npm install && npm run build
3846
- run: npm publish --access public

0 commit comments

Comments
 (0)