From 0788eb3317a269f12de6efd230b2c89eda56ee18 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Mon, 12 Feb 2024 18:30:35 -0500 Subject: [PATCH] v4 release and required workflow updates (#125) * v4 release and workflow update * Update release-pr.yml * Update release-pr.yml * Update package.json * format --- .github/workflows/release-pr.yml | 20 ++++++++++++-------- CHANGELOG.md | 5 +++++ package.json | 1 + 3 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index bf448990..a205b6b4 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -1,14 +1,18 @@ -name: Create release PR +name: Release Project on: + push: + branches: + - main + paths: + - CHANGELOG.md workflow_dispatch: - inputs: - release: - description: 'Define release version (ex: v1, v2, v3)' - required: true jobs: - release-pr: - uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main + release: + permissions: + actions: read + contents: write + uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@a705b2ab6a3ee889f2b0d925ad0bd2f9eb733ce6 with: - release: ${{ github.event.inputs.release }} + changelogPath: ./CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..56b6a24b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Change Log + +## [4.0.0] - 2024-02-12 + +- #121 update to node20 as node16 is deprecated diff --git a/package.json b/package.json index dd7fa55d..a9f40dfa 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "main": "lib/index.js", "scripts": { + "prebuild": "npm i ncc", "build": "ncc build src/run.ts -o lib", "test": "jest", "test-coverage": "jest --coverage",