v1.1.1 - jsdoc and readme updates #10
Workflow file for this run
This file contains hidden or 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: Package and Publish | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Use the Release Tag Version | |
run: | | |
npm version from-git --allow-same-version --no-git-tag-version | |
- name: Install Modules | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: NPM registry authentication | |
run: | | |
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPMJSORG_PUBLISH_TOKEN }} | |
npm config set @shutterstock:registry https://registry.npmjs.org/ | |
- name: Publish with CLI to NPM | |
run: | | |
npm publish --access public --ignore-scripts |