Skip to content

Commit 1a4fcd6

Browse files
Merge pull request #2 from composable-software/feature/release-it
Add release pipline for publishing package in NPM
2 parents c32799c + 771daef commit 1a4fcd6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: '18'
13+
registry-url: 'https://registry.npmjs.org'
14+
scope: '@composable-software'
15+
- run: yarn
16+
- run: npm publish --access public
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)