From 3c159f94a61f6fd50186aa57112d26c5602e5991 Mon Sep 17 00:00:00 2001 From: Michael Puzon Date: Tue, 2 Apr 2024 13:22:01 -0700 Subject: [PATCH] Add github acion pnpm version --- .../workflows/npm-publish-github-packages.yml | 39 ------------------- .github/workflows/release-package.yml | 4 ++ 2 files changed, 4 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/npm-publish-github-packages.yml diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml deleted file mode 100644 index bc802ac..0000000 --- a/.github/workflows/npm-publish-github-packages.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages - -name: Node.js Package - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - uses: pnpm/action-setup@v3 - - run: pnpm install - - run: pnpm run test - - publish-gpr: - needs: build - runs-on: ubuntu-latest - permissions: - packages: write - contents: read - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: https://npm.pkg.github.com/ - - uses: pnpm/action-setup@v3 - - run: pnpm install - - run: pnpm run build:lib - - run: pnpm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 867a5a7..16ff8cc 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -13,6 +13,8 @@ jobs: with: node-version: 20 - uses: pnpm/action-setup@v3 + with: + version: 8 - run: pnpm install - run: pnpm run test @@ -29,6 +31,8 @@ jobs: node-version: 20 registry-url: https://npm.pkg.github.com/ - uses: pnpm/action-setup@v3 + with: + version: 8 - run: pnpm install - run: pnpm run build:lib - run: pnpm publish