Skip to content

Commit da5f7c7

Browse files
authored
Merge pull request #7 from ton-connect/feat/add-publish-workflow
Create publish.yaml
2 parents 830e262 + 55e28db commit da5f7c7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
26+
token: ${{ secrets.NPM_TOKEN }}
27+
tag: latest
28+
access: public
29+
provenance: true
30+
dry-run: true

0 commit comments

Comments
 (0)