From d8d0f90fca3b17207e9a01eb2833f556c3fef942 Mon Sep 17 00:00:00 2001 From: priyagupta108 Date: Mon, 5 Feb 2024 14:27:26 +0530 Subject: [PATCH] TEST --- .../workflows/npm-publish-github-packages.yml | 41 +++++++------------ 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 7ac7b24..c109c5d 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -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}} - \ No newline at end of file + - 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}}