Skip to content

ci(gh actions): reviewed workflows for permissions, secrets and OS var #112

ci(gh actions): reviewed workflows for permissions, secrets and OS var

ci(gh actions): reviewed workflows for permissions, secrets and OS var #112

Workflow file for this run

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