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 3aa1275
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
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'
- name: Set up yarn with corepack
run: |
corepack enable &&
corepack install
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Publish package
run: yarn push
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
permissions:
packages: write
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 3aa1275

Please sign in to comment.