Skip to content

Commit

Permalink
Add publish option
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiel committed Jan 31, 2024
1 parent 059e996 commit d11ac90
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/publish_on_npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to npm
on:
push:
tags:
- '*'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm install

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

0 comments on commit d11ac90

Please sign in to comment.