Skip to content

Commit

Permalink
Add publish WF
Browse files Browse the repository at this point in the history
  • Loading branch information
LikoIlya committed Dec 20, 2024
1 parent 3c6fbc0 commit 5b69f79
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Package to npmjs
on:
workflow_dispatch:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
registry-url: 'https://registry.npmjs.org'
scope: '@airdao'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn compile
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 5b69f79

Please sign in to comment.