Skip to content

Commit

Permalink
fix(pkg): oh please work
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 23, 2024
1 parent b5e660d commit e780db9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": {
".": {
"release-type": "node",
"release-as": "0.1.6"
"release-as": "0.1.7"
}
}
}

0 comments on commit e780db9

Please sign in to comment.