Skip to content

chore(release): 1.13.0 #27

chore(release): 1.13.0

chore(release): 1.13.0 #27

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: Node.js Package
on:
push:
tags:
- v*
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
- run: npm install
- run: npm run lint ngx-pendo
- run: npm run test-schematics
- run: npm run build-pkg
- run: npm run build-schematics
publish-npm:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build-pkg
- run: npm run build-schematics
- run: npm run cp
- run: cd dist/ngx-pendo && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
release:
needs: publish-npm
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Please refer to [CHANGELOG.md](https://github.com/yociduo/ngx-pendo/blob/main/projects/ngx-pendo/CHANGELOG.md) for details.
draft: false
prerelease: false