Skip to content

Commit fdd32fd

Browse files
committed
update publish flow
1 parent 81e1b24 commit fdd32fd

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,30 @@ on:
88
permissions:
99
contents: read
1010
id-token: write
11-
security-events: write # Added for Snyk SARIF upload
11+
security-events: write
1212

1313
jobs:
1414
publish:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:
19-
fetch-depth: 0 # Needed for Snyk
19+
fetch-depth: 0
2020

2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: "20"
2424
registry-url: "https://registry.npmjs.org"
25+
cache: "npm"
2526

2627
- name: Update npm
2728
run: npm install -g npm@latest
2829

29-
- run: npm ci
30-
- run: npm run build
30+
- name: Install dependencies
31+
run: npm ci
3132

32-
- run: cd out && npm publish --access public --provenance
33+
- name: Build
34+
run: npm run build
35+
36+
- name: Publish to npm (trusted publishing)
37+
run: cd out && npm publish --access public --provenance

0 commit comments

Comments
 (0)