Skip to content

Release 2.1.15

Release 2.1.15 #16

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy (After Functional Tests)
on:
release:
types:
- released
push:
tags:
- 'v*.*.*'
jobs:
publish-package:
name: 'Test And Deploy to GitHub'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.15.4]
steps:
- name: Test And Deploy
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# Skip post-install scripts here, as a malicious
# script could steal NODE_AUTH_TOKEN.
- run: npm install --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{secrets.PACKAGES_TOKEN}}
# rebuild will run the scripts skipped
- run: npm rebuild && npm run prepare --if-present
- run: npm test
- run: echo "@ks-labs:registry=https://npm.pkg.github.com/" >> .npmrc
- run: npm publish $(ls *.tgz)
env:
NODE_AUTH_TOKEN: ${{secrets.PACKAGES_TOKEN}}