You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
890 B

---
name: Build and Publish
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup env
uses: actions/setup-node@v1
with:
node-version: 14
- run: yarn
name: Install dependencies
- name: ESLint checks
run: yarn lint
- run: yarn build
name: Compile Typescript
- run: yarn test
name: Run tests
env:
CI: true
- name: Publish if version has been updated
uses: pascalgn/npm-publish-action@1.3.8
with:
tag_name: "v%s"
tag_message: "v%s"
commit_pattern: "^Release (\\S+)"
publish_args: "--non-interactive"
env:
GITHUB_TOKEN: ${{ secrets.node_github_token }}
NPM_AUTH_TOKEN: ${{ secrets.npm_token }}