Skip to content

Commit 1893840

Browse files
authored
Merge pull request #26 from Flagsmith/chore/add-publish-workflow
chore: Add publish workflow
2 parents bec78e1 + a2415c2 commit 1893840

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish NPM Package
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
package:
10+
runs-on: ubuntu-latest
11+
name: Publish NPM Package
12+
13+
steps:
14+
- name: Cloning repo
15+
uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: '18.x'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- run: npm i
23+
- run: npm run deploy
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)