Skip to content

Run Release

Run Release #12

Workflow file for this run

## Bumps the (minor) version number of the package
## Commits and pushes the changes
## Creates a tag/release
name: Run Release
on:
workflow_dispatch:
jobs:
release:
name: Run Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' # This can only be triggered from main
permissions:
contents: write
env:
CHECKOUT_TOKEN:
${{ secrets.GH_TOKEN_COMMIT_AND_BYPASS_BRANCH_PROTECTION }}
GITHUB_TOKEN: ${{ secrets.GH_CUSTOM_TOKEN }}
GITHUB_NPM_TOKEN: ${{ secrets.GH_CUSTOM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GH_CUSTOM_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
# Override the default token because the built-in
# token cannot trigger other workflows
# https://github.community/t/github-actions-workflow-not-triggering-with-tag-push/17053/2
token: ${{ secrets.GH_TOKEN_COMMIT_AND_BYPASS_BRANCH_PROTECTION }}
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Integration Service"
- run: npm ci
- run: npm run release