Merge pull request #15 from intel/dependabot/npm_and_yarn/gen/ts-node… #40
This file contains hidden or 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: Semantic Release | |
on: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
permissions: | |
contents: read | |
jobs: | |
release: | |
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }} | |
runs-on: 'ubuntu-latest' | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
persist-credentials: false | |
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Run Semantic Release | |
env: | |
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
RELEASE_PROCESS: 'true' | |
run: | | |
npm run release:zip | |
npx semantic-release |