π Release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π Release | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π» Checkout current code ref | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: πΌ Configure Git user | |
run: | | |
git config user.name "gbh-devops-bot" | |
git config user.email "[email protected]" | |
- name: π’ Configure Node.js on runner | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.tool-versions' | |
- name: π¦ Install package dependencies using lockfile | |
run: npm ci | |
- name: π Run new version for production | |
run: npx release-it --ci | |
env: | |
GITHUB_TOKEN: ${{ secrets.DEVOPS_USER_TOKEN }} |