build(release): release version 1.3.0 #15
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
# On master pushes it runs the rule tests and if needed it publishes to NPM (new package.json version). | |
name: Master Workflow | |
on: | |
push: | |
branches: master | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Lint | |
run: yarn lint | |
- name: Rule tests | |
run: yarn test | |
release: | |
name: Release | |
needs: checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Publish | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |