From 94ca4b5afb063e315036e9850b0eb1bd30e1ba38 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 6 Jan 2025 12:22:36 +0200 Subject: [PATCH] chore(build): deploy to npm --- .github/workflows/release.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6ffd24..0f7f165 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,21 +1,21 @@ 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 - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - permissions: - packages: write + node-version: 22 + registry-url: 'https://registry.npmjs.org' + always-auth: true + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Publish package + run: yarn publish --access public