From e780db972fb514352b0cce6f18c817531aece297 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 23 Aug 2024 00:17:27 -0700 Subject: [PATCH] fix(pkg): oh please work --- .github/actions/prepare/action.yml | 1 - .github/workflows/release.yml | 20 ++++++++++++++++---- release-please-config.json | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index 4e9c501..943b135 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -7,7 +7,6 @@ runs: - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 with: node-version: '20' - registry-url: 'https://registry.npmjs.org' - name: Install dependencies uses: bahmutov/npm-install@e5c7e14408aa6089501de32bd16123b41738047e # v1.10.2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6dcbd5a..2c4a89b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,15 +22,27 @@ jobs: uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4 # see https://github.com/google-github-actions/release-please-action#automating-publication-to-npm - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - name: Checkout Repository if: ${{ steps.release.outputs.release_created }} + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: ./.github/actions/prepare + - name: Setup Node.js if: ${{ steps.release.outputs.release_created }} - - run: npm run build + uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + + - name: Install + if: ${{ steps.release.outputs.release_created }} + uses: bahmutov/npm-install@e5c7e14408aa6089501de32bd16123b41738047e # v1.10.2 + + - name: Build if: ${{ steps.release.outputs.release_created }} + run: npm run build + - name: Publish to npm if: ${{ steps.release.outputs.release_created }} - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: npm publish diff --git a/release-please-config.json b/release-please-config.json index f018d80..66c22cf 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -3,7 +3,7 @@ "packages": { ".": { "release-type": "node", - "release-as": "0.1.6" + "release-as": "0.1.7" } } }