nvm/.github/workflows/release.yml

36 lines
1.0 KiB
YAML
Raw Permalink Normal View History

name: 'Tests: release process'
2020-11-21 03:28:15 +08:00
on: [pull_request, push]
jobs:
release:
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@v2
2021-11-22 23:20:50 +08:00
with:
allowed-endpoints:
github.com:443
api.github.com:443
objects.githubusercontent.com:443
raw.githubusercontent.com:443
2021-11-22 23:20:50 +08:00
registry.npmjs.org:443
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
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