Skip to content

chore: update release config to include beta branch #344

chore: update release config to include beta branch

chore: update release config to include beta branch #344

name: Semantic Release
on:
push:
branches:
- master
- beta
jobs:
# Builds token library from current data/tokens.json file and releases it.
release:
name: Build and release library
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn install --frozen-lockfile
- name: Build
run: yarn run build
- name: Import GPG key
uses: crazy-max/[email protected]
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git-user-signingkey: true
git-commit-gpgsign: true
- name: Release package to public NPM registry
run: npx semantic-release@19 --debug
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_COMMITTER_NAME: Sage Carbon
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
- name: Upload documentation via ftp
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: "./dist/docs/"
server-dir: "./sage/docs/"