Skip to content

Commit

Permalink
Move Changesets Action to Root Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
woodbrettm committed Jan 10, 2024
1 parent db667fe commit 3195400
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 29 deletions.
27 changes: 0 additions & 27 deletions .github/composite-actions/changeset/action.yml

This file was deleted.

23 changes: 21 additions & 2 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,24 @@ jobs:
- name: Code Checks
uses: ./.github/composite-actions/code-checks

- name: Changeset
uses: ./.github/composite-actions/changeset
- name: 1Password Load Tokens
id: op-tokens
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
NPM_TOKEN: op://dev/StylebucketCore/NPM/npm-token

- name: Release Pull Request or Publish to NPM
uses: changesets/action@v1
with:
publish: pnpm run changeset:publish
version: pnpm run changeset:version
# Version Commmit Message
commit: "[CI] Changeset: Update Package Versions"
# PR Title
title: "[CI] Changeset: Prep Package Versions for Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: set in steps.op-tokens (export-env: true)

0 comments on commit 3195400

Please sign in to comment.