Skip to content

Commit

Permalink
chore(build): deploy to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 6, 2025
1 parent 61e7414 commit 88c4748
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Release
on:
push:
tags: v*
tags:
- 'v*'
jobs:
publish-github-registry:
publish-package:
name: Publish package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
cache: "npm"
- run: yarn install
- run: yarn publish
node-version: 22
registry-url: 'https://registry.npmjs.org'
always-auth: true
- run: |
corepack enable &&
corepack install
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Publish package
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
permissions:
packages: write
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@
"hooks": {
"pre-commit": "lint-staged"
}
}
},
"packageManager": "[email protected]"
}

0 comments on commit 88c4748

Please sign in to comment.