upgrade nx #74
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: ci | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
name: ci | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: '18' | |
- name: Upgrade NPM | |
run: npm i -g npm | |
- name: Checkout repository | |
uses: actions/checkout@master | |
- name: Install dependencies | |
run: npm ci | |
- name: Build packages | |
run: npm run build | |
- name: Lint packages | |
run: npm run lint | |
- name: Publish packages to NPM | |
run: | | |
echo '//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc | |
npm run release -- --yes | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |