Skip to content

Commit ff0ceee

Browse files
ci: remove usage of ref_protected for tags
Apparently the `ref_protected` field is not available for tags which are only protected by the new rulesets feature.
1 parent 44cd159 commit ff0ceee

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55

66
jobs:
77
build-package:
8+
name: Build the node-package
89
runs-on: ubuntu-latest
9-
if: github.ref_protected == true
1010
steps:
1111
- uses: actions/checkout@v4
1212
with:
@@ -26,9 +26,10 @@ jobs:
2626
path: package.tgz
2727

2828
publish-npm:
29-
runs-on: ubuntu-latest
30-
if: github.ref_protected == true
29+
name: Publish the package to the npm registry
3130
environment: publish
31+
runs-on: ubuntu-latest
32+
needs: [build-package]
3233
steps:
3334
- uses: actions/setup-node@v4
3435
with:
@@ -44,10 +45,10 @@ jobs:
4445

4546
create-release:
4647
name: Create the GitHub Release
47-
if: github.ref_protected == true
4848
permissions:
4949
contents: write
5050
runs-on: ubuntu-latest
51+
needs: [build-package]
5152
steps:
5253
- name: Download the build artifacts
5354
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)