Skip to content

Version 5.4.0

Version 5.4.0 #117

Workflow file for this run

name: Node.js Package
on:
release:
branches:
- master
- 5.x
types: [published]
workflow_dispatch:
inputs:
branch:
description: Target branch to publish
required: true
default: master
type: choice
options:
- master
- 5.x
dry_run:
description: Pass true to run side effects without publishing
default: false
type: boolean
jobs:
publish-npm:
runs-on: ubuntu-latest
if: github.event_name != 'workflow_dispatch' || !inputs.dry_run
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: node publish.js
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
PRE_RELEASE: ${{github.event.release.prerelease}}
update-bug-report:
runs-on: ubuntu-latest
# wait for publishing to complete
needs: publish-npm
if: always()
steps:
- uses: actions/checkout@v3
with:
ref: ${{ (github.event_name == 'workflow_dispatch' && inputs.branch) || github.event.release.target_commitish }}
- name: Update bug report version
uses: ShaMan123/[email protected]
with:
semver: ">=4.0.0 || >=6.0.0-rc"
dry_run: no-push
- name: Update bug report node version
uses: ShaMan123/[email protected]
with:
dropdown: _node_version
package: node
semver: ">=14.0.0"
dry_run: no-push
- name: Commit & PR
uses: peter-evans/[email protected]
with:
add-paths: .github/ISSUE_TEMPLATE/bug_report.yml
branch: ci-update-bug-report
base: master
delete-branch: true
labels: CI/CD, bot, task
title: "chore(): Update bug report"
body: |
Automated update to `.github/ISSUE_TEMPLATE/bug_report.yml`
Triggered by job [`${{ github.job }}`](../actions/runs/${{ github.run_id }})