Skip to content

Commit 96b534c

Browse files
Separate build and publish tasks
1 parent c8ba46b commit 96b534c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13-
id-token: write
1413
steps:
1514
- uses: actions/checkout@v4
1615
with:
@@ -24,4 +23,16 @@ jobs:
2423
- run: npm install
2524
- run: npm run build
2625
- run: npm test
26+
publish:
27+
runs-on: ubuntu-latest
28+
permissions:
29+
id-token: write
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
ref: ${{ github.event.inputs.branch }}
34+
- uses: actions/setup-node@v3
35+
with:
36+
node-version: "20.x"
37+
registry-url: "https://registry.npmjs.org"
2738
- run: npm publish --access public

0 commit comments

Comments
 (0)