We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 830e262 + 55e28db commit da5f7c7Copy full SHA for da5f7c7
.github/workflows/publish.yaml
@@ -0,0 +1,30 @@
1
+name: publish
2
+
3
+on:
4
+ workflow_run:
5
+ workflows: [test]
6
+ types:
7
+ - completed
8
+ branches:
9
+ - main
10
11
+jobs:
12
+ publish:
13
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
14
+ runs-on: ubuntu-22.04
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 22
20
+ cache: 'pnpm'
21
+ cache-dependency-path: '**/pnpm-lock.yaml'
22
+ - run: pnpm install --frozen-lockfile
23
+ - run: pnpm build
24
+ - uses: JS-DevTools/npm-publish@v3
25
26
+ token: ${{ secrets.NPM_TOKEN }}
27
+ tag: latest
28
+ access: public
29
+ provenance: true
30
+ dry-run: true
0 commit comments