chore: compile components in release workflow

This commit is contained in:
Mo
2022-06-14 16:07:48 -05:00
parent 724118ee87
commit c98bb1a00e
2 changed files with 8 additions and 42 deletions

View File

@@ -1,42 +0,0 @@
name: Components Publish
on:
push:
tags:
- '*standardnotes/components*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/components
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.CI_PAT_TOKEN }}
fetch-depth: 0
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- run: yarn install
- run: yarn compile:components
- name: Setup git config
run: |
git config --global user.name "standardci"
git config --global user.email "ci@standardnotes.com"
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- run: |
node scripts/package-components.mjs
git add dist
(git commit -m 'chore(release): components') || true
(git push -u origin HEAD) || true

View File

@@ -32,6 +32,14 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Compile Components
run: yarn compile:components
- name: Commit Components
run: |
node packages/components/scripts/package-components.mjs
git add .
(git commit -m 'chore(release): components') || true
- name: Bump Prod Version
if: ${{ github.ref == 'refs/heads/main' }}
run: yarn release:prod