Skip to content

v1.0.5

v1.0.5 #16

Workflow file for this run

name: Publish to NPM
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v2
with:
node-version: 18
- run: npm ci
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
scope: '@kinescope'
- run: npm run install:all
- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "[email protected]"
- run: cd projects/angular-kinescope-player && npm version ${{ github.event.release.tag_name }} --allow-same-version
- run: npx ng build
- run: cd dist/angular-kinescope-player && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# push the version changes to GitHub
- run: git push