diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index def31b0..e5bd833 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -15,14 +15,27 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - name: Checkout Code + uses: actions/checkout@v3 with: ref: ${{ github.event.release.target_commitish }} - - uses: actions/setup-node@v3 + - name: Install pnpm + uses: pnpm/action-setup@v2 with: - node-version: 18 + version: 8 + run_install: false + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'pnpm' registry-url: https://npm.pkg.github.com/ + + - name: Install Dependencies + run: pnpm install --no-frozen-lockfile + - run: npm pkg set publishConfig.registry=https://npm.pkg.github.com - run: npm publish env: @@ -33,14 +46,27 @@ jobs: runs-on: ubuntu-latest name: Publish Npm Package steps: - - uses: actions/checkout@v3 + - name: Checkout Code + uses: actions/checkout@v3 with: ref: ${{ github.event.release.target_commitish }} - - uses: actions/setup-node@v3 + - name: Install pnpm + uses: pnpm/action-setup@v2 with: - node-version: 18 - registry-url: 'https://registry.npmjs.org' + version: 8 + run_install: false + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'pnpm' + registry-url: https://registry.npmjs.org + + - name: Install Dependencies + run: pnpm install --no-frozen-lockfile + - run: git config --global user.name "GitHub CD bot" - run: git config --global user.email "github-cd-bot@example.com" - run: npm publish --access public diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fb1db03..965725e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,7 @@ jobs: - name: Install Node uses: actions/setup-node@v3 with: + node-version: 20 cache: 'pnpm' - name: Install Dependencies