-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8d0f90
commit c1a0271
Showing
2 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
name: Node.js CI | ||
name: Node.js Package | ||
|
||
on: | ||
push: | ||
branches: [ yarn-test ] | ||
|
||
branches: | ||
- yarn-test | ||
|
||
jobs: | ||
build: | ||
publish-gpr: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dmitry-shibanov/setup-node@v-dmshib/fix-arm64-for-windows | ||
with: | ||
node-version: '20' | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: yarn test | ||
- run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- uses: actions/checkout@v4 | ||
- run: corepack enable | ||
- uses: dmitry-shibanov/setup-node@v-dmshib/fix-arm64-for-windows | ||
with: | ||
node-version: 20 | ||
cache: 'yarn' | ||
registry-url: https://npm.pkg.github.com | ||
scope: '@priyagupta108' | ||
- name: Prepare NPM credentials | ||
run: | | ||
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- run: yarn npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters