Skip to content

Commit

Permalink
πŸš€ chore(workflow): use npm publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Assalu committed Aug 29, 2024
1 parent 49a2475 commit afb796c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node.js Package

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node v20
uses: actions/setup-node@v4
with:
node-version: 20

- name: install dep
uses: borales/actions-yarn@v4
with:
cmd: install
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- run: npm build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit afb796c

Please sign in to comment.