Skip to content

Commit

Permalink
Merge pull request #315 from ember-cli/setup-release-automation
Browse files Browse the repository at this point in the history
Setup release automation
  • Loading branch information
NullVoxPopuli committed Oct 31, 2023
2 parents 2e9bd88 + 4d1ed78 commit 937e075
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,34 @@
name: Release

on:
push:
tags:
- 'v*'
# Manual run
workflow_dispatch:
inputs:
tag:
required: true
type: string
description: 'Tag to release'

jobs:
release:
name: release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag || github.ref_name }}
- uses: actions/setup-node@v4
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'

- run: yarn install
- run: npx auto-dist-tag --write

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -79,11 +79,16 @@
}
},
"git": {
"commitMessage": "v${version}",
"tagName": "v${version}"
},
"github": {
"release": true,
"releaseName": "v${version}",
"tokenRef": "GITHUB_AUTH"
},
"npm": {
"publish": false
}
}
}

0 comments on commit 937e075

Please sign in to comment.