Skip to content

Commit

Permalink
Updated workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisli30 committed Aug 22, 2023
1 parent b149e39 commit 4a71a37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/npm-publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ jobs:
- name: 🛠️ Build
run: npm run build

- name: 🔐 Authenticate with NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_TOKEN_CHRIS }}" > ~/.npmrc

- name: Publish packages to NPM with dev tag
id: changesets
uses: changesets/action@v1
with:
publish: npm run changeset:publish-dev
env:
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN_CHRIS }}
run: |
for dir in packages/*; do
if [ -d "$dir" ]; then
echo "Publishing $dir package"
cd "$dir"
npm publish --tag dev
cd ..
fi
done
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
run: npm ci --ignore-scripts

- name: Create Release Pull Request
uses: changesets/action@v1
uses: changesets/action@v2
with:
version: npm run changeset:version
title: Changeset Version Bump
commit: Update the version of packages with .changeset md files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4a71a37

Please sign in to comment.