Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
priyagupta108 committed Feb 5, 2024
1 parent 8c83bf3 commit d8d0f90
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
name: Node.js Package
name: Node.js CI

on:
push:
branches:
- issue-942
branches: [ yarn-test ]


jobs:
publish-gpr:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- 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 workspaces focus --all --production
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- 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}}

0 comments on commit d8d0f90

Please sign in to comment.