3.12.0 #5
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
name: Build and Release to NPM | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
registry-url: 'https://registry.npmjs.org' | |
- name: Build the NPM Package | |
run: | | |
cd src/typescript_client | |
npm install | |
npm run build | |
- name: Pack all items that are published as packages | |
run: | | |
cd src/typescript_client | |
npm pack | |
# Publish to npm Registry | |
- name: Publish emass_client to NPM | |
if: always() | |
run: | | |
cd src/typescript_client | |
npm publish --access public mitre-emass_client-*.tgz | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |