Skip to content

Commit

Permalink
Update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
priyagupta108 authored Jan 19, 2024
1 parent 971ee24 commit 57896b8
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,29 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- uses: priyagupta108/setup-node@PR-927
with:
node-version: 16
architecture: arm64
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: priyagupta108/setup-node@PR-927
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# publish-npm:
# needs: build
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: priyagupta108/setup-node@PR-927
# with:
# node-version: 16
# architecture: arm64
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm publish --access=public
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 57896b8

Please sign in to comment.