Skip to content

Merge pull request #1361 from sasjs/issue-1356 #566

Merge pull request #1361 from sasjs/issue-1356

Merge pull request #1361 from sasjs/issue-1356 #566

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: SASjs CLI Deploy
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/hydrogen]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: |
npm config set registry http://registry.npmjs.org
npm ci
- name: Build Project
run: npm run build
- name: Set NPM Registry back to https
run: npm config set registry https://registry.npmjs.org
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}