Skip to content

Commit ce9d962

Browse files
authored
Merge pull request #23 from coders51/18-as-a-developer-we-want-to-deploy-the-library-on-npm
[IS-18/feat]: add release-package workflow
2 parents 8b8b1eb + c7de117 commit ce9d962

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Package
2+
3+
on:
4+
release:
5+
types: [created, edited]
6+
7+
jobs:
8+
github-package-registry:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 20
19+
registry-url: "https://registry.npmjs.org"
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build
23+
run: npm run build
24+
- name: Publish package to npm package registry
25+
run: npm publish --access public
26+
env:
27+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)