2020-11-07 16:09:08 +08:00
|
|
|
name: 'Tests: release process'
|
2020-11-21 03:28:15 +08:00
|
|
|
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2021-09-10 14:09:45 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2020-11-21 03:28:15 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-11-22 23:20:50 +08:00
|
|
|
- name: Harden Runner
|
|
|
|
uses: step-security/harden-runner@v1
|
|
|
|
with:
|
|
|
|
allowed-endpoints:
|
|
|
|
github.com:443
|
|
|
|
registry.npmjs.org:443
|
2020-11-21 03:28:15 +08:00
|
|
|
- uses: actions/checkout@v2
|
2021-02-02 06:32:35 +08:00
|
|
|
- uses: actions/setup-node@v2
|
2020-11-21 03:28:15 +08:00
|
|
|
with:
|
|
|
|
node-version: "14"
|
|
|
|
- run: npm install
|
|
|
|
- name: Configure git
|
|
|
|
run: |
|
|
|
|
git config user.name github-actions
|
|
|
|
git config user.email github-actions@github.com
|
2020-11-28 13:44:33 +08:00
|
|
|
git fetch --unshallow --tags -f || git fetch --tags -f
|
2020-11-21 03:28:15 +08:00
|
|
|
- name: Attempt `make release` process
|
|
|
|
run: echo proceed | make TAG=99.99.99 release
|
|
|
|
env:
|
|
|
|
GIT_EDITOR: "sed -i '1 s/^/99.99.99 make release test/'"
|
|
|
|
- name: Ensure tag is created
|
|
|
|
run: git tag | grep v99.99.99
|