From e866bebd910f780fdd391815611245210b857a0c Mon Sep 17 00:00:00 2001 From: Harold <75729237+surelle-ha@users.noreply.github.com> Date: Fri, 1 Nov 2024 22:56:32 +0800 Subject: [PATCH] chore: construct workflow --- .github/workflows/deploy.yml | 41 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 742b3af..3c75f3d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,27 +1,28 @@ name: Registry on: - push: - branches: - - main - - ci/* - - feature/* - - test/* + push: + branches: + - main + - ci/* + - feature/* + - test/* jobs: - publish-gpr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + publish-gpr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 - - uses: actions/setup-node@v1 - with: - node-version: 20 - registry-url: https://npm.pkg.github.com/ - scope: "@surelle-ha" + - uses: actions/setup-node@v3 + with: + node-version: '20' + registry-url: 'https://npm.pkg.github.com/' + scope: 'surelle-ha' - - run: npm install --legacy-peer-deps - - run: npm run build - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm install --legacy-peer-deps + - run: npm run build + + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}