Staging (#816) #5
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: | |
- main | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.8.1' | |
- name: List files in the root directory | |
run: ls -al | |
- name: Check if package-lock.json exists | |
run: test -f package-lock.json && echo "package-lock.json exists" || echo "package-lock.json does not exist" | |
- name: Clear NPM Cache | |
run: npm cache clean --force | |
- name: Install dependencies | |
run: npm ci | |
- name: Semantic Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |