Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug release job #1140

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/CI-gnosis.yml

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/CI.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/PR.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/deploy.yml

This file was deleted.

41 changes: 5 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- yivlad/debug-release-job

jobs:
release:
Expand All @@ -28,44 +29,12 @@ jobs:
run: npm i -g [email protected]

- name: Install Dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Print git status
run: git status

- 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
Loading