Skip to content

fix(release): missing npm command #2

fix(release): missing npm command

fix(release): missing npm command #2

Workflow file for this run

name: 'Release'
on:
push:
branches:
- 'main'
env:
NODE_VERSION: 18
jobs:
build-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
cache: 'npm'
- name: NPM Install
run: npm ci
- name: NPM Lint
run: npm run lint
- name: NPM Build
run: npm run build --if-present
- name: NPM Test
run: npm run test --if-present
newRelease:
name: Create New Release
needs: [build-test]
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
cache: 'npm'
- name: NPM Install
run: npm ci
- name: NPM Build
run: npm run build --if-present
- name: Release
run: npm run semantic-release
env:
GITHUB_TOKEN: ${{secrets.GLOBAL_GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
CI: true