Skip to content

Publish

Publish #7

Workflow file for this run

# Publishes changes from develop to master.
#
# * Triggers the CD workflow to publish the package if needed.
# * Documentation will be published on the official site.
name: Publish
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write # Required by Akeyless
contents: read
packages: read
steps:
- name: Import Secrets
id: import-secrets
uses: LanceMcCarthy/akeyless-action@v3
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@v3
with:
ref: master
fetch-depth: 0 # Fetch all branches
token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install modules
run: npm install @progress/semantic-prerelease --no-save
- name: Fast-forward master to develop
run: npx release-master