Skip to content

Commit 156a381

Browse files
authored
chore: update publish worfklow
1 parent 777b932 commit 156a381

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
# Publishes changes from develop to master.
2-
#
3-
# * Triggers the CD workflow to publish the package if needed.
4-
# * Documentation will be published on the official site.
1+
# Fast-forwards master to develop and triggers the CD workflow to publish the package.
52
name: Publish
63

74
on: workflow_dispatch
85

96
jobs:
107
build:
8+
environment: publish
119
runs-on: ubuntu-24.04
1210

1311
permissions:
14-
id-token: write # Required by Akeyless
15-
contents: read
16-
packages: read
12+
id-token: write # Required by Akeyless
13+
contents: read
14+
packages: read
1715

1816
steps:
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: 24
20+
1921
- name: Import Secrets
2022
id: import-secrets
2123
uses: LanceMcCarthy/akeyless-action@v5
@@ -31,11 +33,7 @@ jobs:
3133
fetch-depth: 0 # Fetch all branches
3234
token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
3335

34-
- uses: actions/setup-node@v6
35-
with:
36-
node-version: 24
37-
3836
- name: Fast-forward master to develop
3937
run: |
40-
npm install --no-save @progress/kendo-common-tasks
41-
./node_modules/.bin/publish-develop-to-master
38+
git merge --ff-only origin/develop
39+
git push origin master

0 commit comments

Comments
 (0)