Skip to content

Commit 97f867d

Browse files
authored
Merge pull request #70 from nodenv/release-workflow
release workflow
2 parents 647f531 + daacd19 commit 97f867d

File tree

3 files changed

+6
-32
lines changed

3 files changed

+6
-32
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
11
name: Release
2-
on: { push: { tags: 'v[0-9]+.[0-9]+.[0-9]+' } }
2+
on:
3+
push: { tags: 'v[0-9]+.[0-9]+.[0-9]+*' }
34

45
jobs:
5-
github:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v4
9-
with: { fetch-depth: 0 }
10-
- run: npm ci
11-
- run: npm run -s relnotes | tee relnotes.txt
12-
- uses: jasonkarns/create-release@master
13-
with: { body_path: relnotes.txt }
14-
15-
homebrew:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: mislav/bump-homebrew-formula-action@v1
19-
with:
20-
formula-name: node-build-update-defs
21-
homebrew-tap: nodenv/nodenv
22-
env:
23-
COMMITTER_TOKEN: ${{ secrets.BOT_TOKEN }}
6+
release:
7+
permissions: { contents: write }
8+
uses: nodenv/.github/.github/workflows/release.yml@v4
9+
secrets: inherit
2410

2511
npm:
2612
runs-on: ubuntu-latest

package-lock.json

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@
3939
"lint": "npm run lint:js && npm run lint:shell",
4040
"lint:js": "prettier-standard '**/*.js' && standard --fix",
4141
"lint:shell": "git ls-files bin | xargs shellcheck",
42-
"relnotes": "changelog",
4342
"postversion": "git push --follow-tags"
4443
},
4544
"engines": {
4645
"node": ">=6"
4746
},
4847
"devDependencies": {
49-
"@nodenv/devutil": "^0.1.1",
5048
"prettier-standard": "^16.4.1",
5149
"standard": "^14.3.4"
5250
}

0 commit comments

Comments
 (0)