-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (32 loc) · 1.01 KB
/
publish.yml
File metadata and controls
39 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Fast-forwards master to develop and triggers the CD workflow to publish the package.
name: Publish
on: workflow_dispatch
jobs:
build:
environment: publish
runs-on: ubuntu-24.04
permissions:
id-token: write # Required by Akeyless
contents: read
packages: read
steps:
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Import Secrets
id: import-secrets
uses: LanceMcCarthy/akeyless-action@v5
with:
access-id: ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
static-secrets: '{ "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN" }'
export-secrets-to-environment: false
- name: Check out master
uses: actions/checkout@v6
with:
ref: master
fetch-depth: 0 # Fetch all branches
token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
- name: Fast-forward master to develop
run: |
git merge --ff-only origin/develop
git push origin master