chore: compile components in release workflow
This commit is contained in:
42
.github/workflows/components.publish.yml
vendored
42
.github/workflows/components.publish.yml
vendored
@@ -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
|
|
||||||
8
.github/workflows/version-bump.yml
vendored
8
.github/workflows/version-bump.yml
vendored
@@ -32,6 +32,14 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
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
|
- name: Bump Prod Version
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
run: yarn release:prod
|
run: yarn release:prod
|
||||||
|
|||||||
Reference in New Issue
Block a user