diff --git a/.github/workflows/components.publish.yml b/.github/workflows/components.publish.yml deleted file mode 100644 index 2c1e90334..000000000 --- a/.github/workflows/components.publish.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 7a924b4ad..5cc374481 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -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