build(release process): reviewed release env and releaserc file for e… #114
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: | |
- 'master' | |
jobs: | |
build: | |
name: "Build" | |
uses: ./.github/workflows/test.yml | |
permissions: | |
contents: read | |
release: | |
name: Release | |
runs-on: ${{ vars.RTLDEV_MW_CI_OS }} | |
needs: build | |
permissions: | |
contents: write | |
issues: write | |
deployments: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup NodeJS ${{ vars.RTLDEV_MW_CI_NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{ vars.RTLDEV_MW_CI_NODE_VERSION }}' | |
check-latest: true | |
- name: Install dependencies | |
run: npm ci | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }} | |
TEAMS_NOTIFICATION_URI: ${{ secrets.RTLDEV_MW_CI_NOTIFICATION_URI }} | |
COMMIT_SHA: ${{ github.sha }} | |
run: npx semantic-release |