Button enhancements (#416) #448
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Semantic Release | |
on: | |
push: | |
branches: | |
- master | |
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@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: yarn install --frozen-lockfile | |
- name: Append .env | |
run: | | |
echo " | |
FIGMA_ACCESS_TOKEN=${{ secrets.FIGMA_ACCESS_TOKEN }} | |
FIGMA_FILE_ID=${{ secrets.FIGMA_FILE_ID }} | |
" >> .env | |
- name: Build | |
run: yarn run build | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Release package to NPM registries | |
run: npx semantic-release --debug | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADMIN_ACCESS_TOKEN }} | |
GIT_COMMITTER_NAME: Sage Carbon | |
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
# GitHub registry - @amanda-mitchell/semantic-release-npm-multiple | |
GITHUB_NPM_CONFIG_REGISTRY: https://npm.pkg.github.com | |
GITHUB_NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_NPM_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
# NpmJS registry - @amanda-mitchell/semantic-release-npm-multiple | |
PUBLIC_NPM_CONFIG_REGISTRY: https://registry.npmjs.org | |
PUBLIC_NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
PUBLIC_NPM_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
# X3 registry - @amanda-mitchell/semantic-release-npm-multiple | |
X3_NPM_CONFIG_REGISTRY: https://repository.sagex3.com:8443/repository/x3-npm-hosted/ | |
X3_NPM_USERNAME: ${{ secrets.X3_NPM_USER }} | |
X3_NPM_PASSWORD: ${{ secrets.X3_NPM_PASSWORD }} | |
X3_NPM_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |