Skip to content

chore(release): v1.8.1 #11

chore(release): v1.8.1

chore(release): v1.8.1 #11

Workflow file for this run

name: Node.js Package
on:
push:
tags:
- v*
env:
HUSKY: 0
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install -g yarn
- run: yarn
- run: yarn lint
- run: yarn package
publish-npm:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm install -g yarn
- run: yarn
- run: yarn package
- run: yarn copyfile
- run: cd dist/angular-toaster && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
release:
needs: publish-npm
name: Create Release
runs-on: ubuntu-latest
steps:
- 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/damingerdai/angular-toaster/blob/develop/CHANGELOG.md) for details.
draft: false
prerelease: false
deploy:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 22.X
uses: actions/setup-node@v1
with:
node-version: 22
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm install yarn -g
- run: yarn && yarn ng deploy