Skip to content

Commit

Permalink
add release ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
ridafkih committed Jun 15, 2022
1 parent 5823a2b commit b41a58d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy Package on NPM

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node Environment
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
run: npm ci
- name: Build NPM Package
run: npm run build
- name: Publish to NPM Registry
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit b41a58d

Please sign in to comment.