mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2026-05-23 23:53:26 -06:00
Publish the released commit so pre-releases can be cut from any branch
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
name: Publish to npm
|
name: Publish to npm
|
||||||
|
|
||||||
# Publishes the package to npm whenever a GitHub Release is published.
|
# Publishes the package to npm whenever a GitHub Release is published.
|
||||||
|
# It publishes the exact commit the release tag points to, so a pre-release
|
||||||
|
# can be cut from any branch (e.g. a beta off `dev`) without that branch
|
||||||
|
# having to be merged into master first.
|
||||||
#
|
#
|
||||||
# The release tag is the source of truth for the version:
|
# The release tag is the source of truth for the version:
|
||||||
# - Stable tag (e.g. v1.2.3) -> published to the "latest"
|
# - Stable tag (e.g. v1.2.3) -> published to the "latest"
|
||||||
@@ -27,10 +30,8 @@ jobs:
|
|||||||
contents: write # commit the version bump back to master
|
contents: write # commit the version bump back to master
|
||||||
id-token: write # npm Trusted Publishing (OIDC) + provenance
|
id-token: write # npm Trusted Publishing (OIDC) + provenance
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout master
|
- name: Check out the released commit
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
ref: master
|
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user