Skip to content

build(release): 馃殌 v6.75.0-beta.30 馃 #731

build(release): 馃殌 v6.75.0-beta.30 馃

build(release): 馃殌 v6.75.0-beta.30 馃 #731

Workflow file for this run

name: Release
on:
push:
branches:
- main
- beta
jobs:
Release:
if: "!contains(github.event.head_commit.message, 'SKIP CI')"
runs-on: ubuntu-latest
steps:
# Setup the git repo & Node environemnt.
#
- name: Checkout branch (${{ github.ref }})
uses: actions/checkout@v3
with:
persist-credentials: false # install breaks with persistant creds!
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: |
npm ci
npm run build --if-present
env:
PUPPETEER_SKIP_DOWNLOAD: true
# Build, version, and tag a new release.
#
- name: Publish release
run: npm run release # configured in .releaserc
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # auth push to remote repo
NPM_TOKEN: ${{ secrets.NPM_TOKEN || secrets.GH_TOKEN }} # auth publish to registry
# Push release changes to the remote.
#
- name: Push to remote
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
# Merge @latest release back to @next.
#
- name: Sync to next
if: "github.ref == 'refs/heads/main'"
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: next
continue-on-error: true
# Sync docs to rdmd.readme.io
#
- name: Sync docs to rdmd.readme.io
uses: readmeio/rdme@v8
with:
rdme: docs ./docs --key=${{ secrets.RDME_KEY }} --version=2