Skip to content

Merge pull request #31 from apimatic/piyush/update-tslib-version #42

Merge pull request #31 from apimatic/piyush/update-tslib-version

Merge pull request #31 from apimatic/piyush/update-tslib-version #42

Workflow file for this run

name: Release
on:
push:
branches: [ alpha ]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18' ]
name: Release with Node version ${{ matrix.node }}
steps:
- name: Checkout CLI
uses: actions/checkout@v2
with:
repository: apimatic/apimatic-cli
token: ${{ secrets.ACCESS_TOKEN }}
persist-credentials: false
fetch-depth: 0
path: cli
- name: setup node
uses: actions/setup-node@v2
- name: Install dependencies
working-directory: cli
run: |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf https://github.com/
npm install
npm install --save-dev @semantic-release/changelog @semantic-release/git
- name: Check Build
working-directory: 'cli'
run: npm run build
- name: Release
working-directory: cli
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release