Skip to content

Commit

Permalink
ci: add publish action
Browse files Browse the repository at this point in the history
Release-As: 0.1.0
  • Loading branch information
elct9620 committed Nov 14, 2024
1 parent 8428524 commit acb8a17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to NPM.js
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: yarn install --frozen-lockfile
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache: 'yarn'

- name: Install dependencies
run: npm install
run: yarn install --frozen-lockfile

- name: Build
run: npx turbo run build
Expand Down

0 comments on commit acb8a17

Please sign in to comment.