fix(build): tweaked the release configuration to ensure that releases… #13
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: Release | |
on: | |
push: | |
branches: | |
- main | |
- beta | |
permissions: | |
contents: write | |
packages: write | |
id-token: write | |
checks: read | |
defaults: | |
run: | |
working-directory: ./ | |
jobs: | |
publish-package: | |
runs-on: ubuntu-latest | |
name: To Artifactory | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
with: | |
node-version: 'lts/*' | |
- name: Run semantic-release | |
uses: mridang/action-semantic-release@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
allow-force-install: 'true' | |
env: | |
DOCKER_REGISTRY_USER: ${{ github.actor }} | |
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |