Merge pull request #2167 from VenusProtocol/dependabot/npm_and_yarn/g… #670
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: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read # for checkout | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
issues: write # to be able to comment on released issues | |
pull-requests: write # to be able to comment on released pull requests | |
id-token: write # to enable use of OIDC for npm provenance | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Bump release version | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} | |
GIT_AUTHOR_NAME: Venus Tools | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: Venus Tools | |
GIT_COMMITTER_EMAIL: [email protected] | |
run: yarn semantic-release | |
# TODO: add step to deploy to production (see VEN-1737) |