Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
yivlad committed Sep 4, 2023
1 parent e5e9025 commit 214e1c2
Showing 1 changed file with 3 additions and 38 deletions.
41 changes: 3 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 214e1c2

Please sign in to comment.