Skip to content

10.2.1

10.2.1 #31

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- name: cache dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-10.x-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-10.x-
${{ runner.os }}-npm-
- name: install
run: |
npm i
npm i --no-save eslint
- name: static checks
run: |
npm run lint
- name: build
run: |
npm run build
- name: test
run: |
npm run testb
npm run test:fetch
# And finally... publish it! Note that we create the .npmrc file
# "just in time" so that `npm publish` can get the auth token from the
# environment
- name: publish
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}