Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
if: github.event_name == 'release'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
id-token: write # required to publish npm package
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
Expand All @@ -78,6 +81,4 @@ jobs:
name: dist
path: dist

- name: Set npm auth token
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > ~/.npmrc
- run: mise release
- run: npm publish
Comment thread
phanect marked this conversation as resolved.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ tests/
.gitattributes
.gitignore
tsconfig.json
pnpm-workspace.yaml
3 changes: 0 additions & 3 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ node = { version = "24" }
"mise install"
]

[tasks.release]
run = "npm publish --access public --non-interactive"

[hooks]
postinstall = [
"corepack enable",
Expand Down