-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,48 +28,13 @@ jobs: | |
- name: Install package manager | ||
run: npm i -g [email protected] | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: Print git status | ||
run: git status | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Set git user | ||
run: | | ||
git config user.name truefibot | ||
git config user.email [email protected] | ||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
# This expects you to have a script called release which does a build for your packages and calls changeset publish | ||
publish: pnpm run release | ||
version: pnpm run version | ||
commit: "🎉 Release new version" | ||
title: "🎉 Release new version" | ||
setupGitUser: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Deploy usedapp-docs.netlify.app | ||
uses: nwtgck/[email protected] | ||
if: steps.changesets.outputs.published == 'true' | ||
with: | ||
enable-commit-comment: true | ||
enable-pull-request-comment: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
overwrites-pull-request-comment: true | ||
production-deploy: ${{ github.event_name != 'pull_request' }} | ||
publish-dir: packages/docs/build | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DOCS_SITE_ID }} | ||
|
||
- name: Publish dev version to npm | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | ||
pnpm -r --filter "@usedapp/*" exec ${PWD}/scripts/dev-version.sh | ||
pnpm run build | ||
pnpm -r publish --no-git-checks |