Skip to content

Commit

Permalink
github action for publishing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
sekaiking committed Nov 21, 2023
1 parent 0f91e63 commit c6d4fda
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v2

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn

- name: Install Dependencies
id: install
run: yarn install --frozen-lockfile

- name: Publish to npm
id: publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit c6d4fda

Please sign in to comment.