Skip to content

1.0.1

1.0.1 #177

Workflow file for this run

name: npm-publish
on:
release:
types: [released]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.event.release.target_commitish }}
- name: Use node 16
uses: actions/[email protected]
with:
node-version: '16'
- name: Install dependencies
run: npm ci
- run: git config --global user.name "microchipgnu"
- run: git config --global user.email "[email protected]"
- run: npm version ${{ github.event.release.tag_name }}
- name: build
run: npm run build
- run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_AUTH_TOKEN }}"
- run: npm publish --tag latest
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- run: git push
env:
# The secret is passed automatically. Nothing to configure.
github-token: ${{ secrets.GITHUB_TOKEN }}