Skip to content

Commit cc56047

Browse files
committed
2 parents 78457a5 + 5a46764 commit cc56047

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: NPM / Publish
2+
3+
on:
4+
workflow_dispatch:
5+
# We only publish if the version of sern handler is different. workflow automatically cancels if verson is the same
6+
push:
7+
branches:
8+
- 'main'
9+
jobs:
10+
test-and-publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
14+
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
15+
with:
16+
node-version: 17
17+
- run: yarn --immutable
18+
- run: yarn build
19+
- uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939 # v1
20+
with:
21+
token: ${{ secrets.NPM_TOKEN }}
22+
access: "public"

0 commit comments

Comments
 (0)