From 0ecd685918ee4720634b406b441411be2916ffbc Mon Sep 17 00:00:00 2001 From: Edaz Date: Wed, 24 Nov 2021 14:46:11 +1300 Subject: [PATCH] fix Signed-off-by: Edaz --- .github/workflows/npm-publish.yml | 85 +++++++++++++++---------------- 1 file changed, 42 insertions(+), 43 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index eb7f8af..b8b4ee3 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,50 +4,49 @@ name: Node.js Package on: - release: - types: [created] + release: + types: [created] jobs: - build: - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./packages/astro-feather-icons - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - - run: npm ci -# - run: npm test + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./packages/astro-feather-icons + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14 + - run: pnpm ci - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - run: pnpm ci + - run: pnpm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - publish-gpr: - needs: build - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - registry-url: https://npm.pkg.github.com/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + publish-gpr: + needs: build + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14 + registry-url: https://npm.pkg.github.com/ + - run: pnpm ci + - run: pnpm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}