release v1.0.2 #5
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: npm publish | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm publish | |
run: | | |
export NPM_AUTH_TOKEN=${{ secrets.NPM_AUTH_TOKEN }} | |
export NPM_EMAIL=apps.trysoft@gmail.com | |
npm install -g npm-cli-adduser | |
npm-cli-adduser -u ${{ secrets.NPM_USER }} -p ${{ secrets.NPM_PASS }} -e apps.trysoft@gmail.com | |
npm ci | |
npm run build | |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }} | |
npm publish | |
env: | |
CI: true |