2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix(ci): refactor notify action as a job of publish action; (#6176)

This commit is contained in:
Dmitriy Mozgovoy
2024-01-05 21:36:41 +02:00
committed by GitHub
parent f4f2b039dd
commit 0736f95ce8
2 changed files with 28 additions and 6 deletions
+6 -6
View File
@@ -12,12 +12,12 @@ on:
# branches:
# - main
# - 'v**'
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- main
- 'v**'
#push:
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+'
# branches:
# - main
# - 'v**'
workflow_dispatch:
inputs:
+22
View File
@@ -56,3 +56,25 @@ jobs:
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
notify:
needs: [publish]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci
############# Add release comments and tags to published PRs ##############
- name: Notify published PRs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node ./bin/actions/notify_published.js --tag ${{ github.event.inputs.tag || github.event.release.tag_name }}