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

Test base PR for #1487 (21ab188406ea863c5af575bee4f04f1f6a079192) #1488

Closed
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
30 changes: 23 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,23 @@ on:
prerelease:
description: 'Prerelease'
required: true
default: true
type: boolean
dry-run:
description: 'Dry run'
required: true
default: false
type: boolean
skip-if-no-diff:
description: 'Skip if no diff'
required: true
default: false
type: boolean
diff-targets:
description: 'Diff Targets'
required: false
default: 'dist/**/*'
type: string
dry-run:
description: 'Dry run'
required: true
default: false
type: boolean

jobs:
build:
Expand Down Expand Up @@ -75,12 +80,17 @@ jobs:
publish:
name: Publish
needs: [release]
if: ${{ needs.release.outputs.diff != 'true' }}
if: ${{ needs.release.outputs.skipped != 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
if: ${{ !inputs.dry-run }}
with:
ref: ${{ needs.release.outputs.tag }}
- uses: actions/checkout@v3
if: ${{ inputs.dry-run }}
with:
ref: ${{ github.ref_name || github.ref }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand All @@ -89,9 +99,15 @@ jobs:
- env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
DRY_RUN: ${{ inputs.dry-run || false }}
run: |
yarn install
yarn build
npm whoami
npm config ls -l
npm publish
if [[ "$DRY_RUN" = true ]]
then
npm publish --dry-run
else
npm publish
fi