docs(README): update install instruction (#14) #8
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' | |
env: | |
NODE_VERSION: 20 | |
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 |