π chore(release): 2.1.15 #15
Workflow file for this run
This file contains 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
# 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}} |