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
17 changes: 4 additions & 13 deletions .github/workflows/autopublish.yml → .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "AutoPublish"
name: "Bump version"

on:
push:
branches:
- "master"

jobs:
auto-publish:
name: "AutoPublish on master"
bump:
name: "Bump version on master"
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'chore: bump version to')"

Expand All @@ -19,7 +19,7 @@ jobs:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: "Checkout source code"
uses: "actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd" # v5
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
token: ${{ steps.app-token.outputs.token }}
- name: "Automated Release"
Expand All @@ -28,12 +28,3 @@ jobs:
commit-message: 'chore: bump version to {{version}}'
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: "Install dependencies"
run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Publish to npm"

on:
push:
tags:
- "*.*.*"

jobs:
publish:
name: "Publish to npm"
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false
- run: npm ci
- run: npm test
- run: npm publish --access public
Loading