ci(gh actions): reviewed workflows for permissions, secrets and OS var #112
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 }} | |
RTLDEV_MW_NOTIFICATION_URI: ${{ secrets.RTLDEV_MW_CI_NOTIFICATION_URI }} | |
run: npx semantic-release |