Skip to content

Commit

Permalink
chore: run npm install before npm publish (#88)
Browse files Browse the repository at this point in the history
another way is to remove `node-options=--loader=esmock` in `.npmrc`.
adding the env in npm scripts instead.

fixes #86
  • Loading branch information
aladdin-add authored Apr 9, 2024
1 parent e6fa3c6 commit 136df22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ jobs:
{ "type": "refactor", "section": "Chores", "hidden": false },
{ "type": "test", "section": "Chores", "hidden": false }
]
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
if: ${{ steps.release.outputs.release_created }}
- run: npm install
if: ${{ steps.release.outputs.release_created }}
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -51,4 +53,4 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
env:
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
MASTODON_HOST: ${{ secrets.MASTODON_HOST }}
MASTODON_HOST: ${{ secrets.MASTODON_HOST }}

0 comments on commit 136df22

Please sign in to comment.