Skip to content

v1.0.18-beta

v1.0.18-beta #22

Workflow file for this run

name: Publish
# Triggers the workflow on create a new release
on:
release:
types: [created]
jobs:
# This workflow contains a single job called "publish"
publish:
# The type of A that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout 🛎️
uses: actions/checkout@v2
# Setup .npmrc file
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16
# Caches Node.js modules
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
# Build
- name: Install and Build 🔧
run: |
npm ci
npm run build
# Test
# - name: E2E Test
# run: npm run test-e2e
# Publish if all previous steps run through
- name: Publish 🚀
if: ${{ success() }}
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
access: public