docs: updated readme with instructions on how to use the new `npx bre… #45
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 | |
- alpha | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
concurrency: | |
group: deploy-${{github.ref}} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
registry-url: "https://registry.npmjs.org" | |
cache: 'npm' | |
- name: Cache project's node_modules | |
uses: actions/cache@v3 | |
id: cache-node-modules | |
with: | |
path: node_modules | |
key: ${{runner.os}}-node-${{hashFiles('package-lock.json')}} | |
- name: Install app dependencies cleanly | |
run: npm ci | |
- name: Linting | |
run: npm run lint | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
run: npx autorel --publish |