Skip to content

Commit 937e075

Browse files
Merge pull request #315 from ember-cli/setup-release-automation
Setup release automation
2 parents 2e9bd88 + 4d1ed78 commit 937e075

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
# Manual run
8+
workflow_dispatch:
9+
inputs:
10+
tag:
11+
required: true
12+
type: string
13+
description: 'Tag to release'
14+
15+
jobs:
16+
release:
17+
name: release
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.event.inputs.tag || github.ref_name }}
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 14
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- run: yarn install
30+
- run: npx auto-dist-tag --write
31+
32+
- run: npm publish
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,16 @@
7979
}
8080
},
8181
"git": {
82+
"commitMessage": "v${version}",
8283
"tagName": "v${version}"
8384
},
8485
"github": {
8586
"release": true,
87+
"releaseName": "v${version}",
8688
"tokenRef": "GITHUB_AUTH"
89+
},
90+
"npm": {
91+
"publish": false
8792
}
8893
}
8994
}

0 commit comments

Comments
 (0)