Remove @arethetypeswrong/cli #58
Workflow file for this run
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different | |
# versions of node. Also, if its on master (not a PR) and there is a new version then it will publish the package. | |
# See: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: CI Build | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run prettier:ci | |
- run: npm run build | |
- run: npm run test:ci | |
- name: npm publish | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.') | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |