Skip to content

Commit

Permalink
fix: use ci or update for release checklist
Browse files Browse the repository at this point in the history
Closes #260
  • Loading branch information
lukekarrys committed Nov 10, 2022
1 parent e4465dd commit 110b63a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
RELEASE_COMMENT_ID: ${{ needs.release.outputs.comment-id }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm exec --offline -- template-oss-release-manager
npm exec --offline -- template-oss-release-manager --lockfile=false
npm run rp-pull-request --ignore-scripts -ws -iwr --if-present
- name: Commit
id: commit
Expand Down
8 changes: 7 additions & 1 deletion bin/release-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ const log = (...logs) => console.error('LOG', ...logs)
const ROOT = process.cwd()
const pkg = require(join(ROOT, 'package.json'))

const args = process.argv.slice(2).reduce((acc, a) => {
const [k, v] = a.replace(/^--/g, '').split('=')
acc[k] = v === 'true'
return acc
}, {})

/* eslint-disable max-len */
const DEFAULT_RELEASE_PROCESS = `
1. Checkout the release branch and test
\`\`\`sh
gh pr checkout <PR-NUMBER> --force
npm i
npm ${args.lockfile ? 'ci' : 'update'}
npm test
gh pr checks --watch
\`\`\`
Expand Down
2 changes: 1 addition & 1 deletion lib/content/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
RELEASE_COMMENT_ID: $\{{ needs.release.outputs.comment-id }}
GITHUB_TOKEN: $\{{ secrets.GITHUB_TOKEN }}
run: |
{{ rootNpmPath }} exec --offline -- template-oss-release-manager
{{ rootNpmPath }} exec --offline -- template-oss-release-manager --lockfile={{ lockfile }}
{{ rootNpmPath }} run rp-pull-request --ignore-scripts {{~#if allFlags}} {{ allFlags }}{{else}} --if-present{{/if}}
- name: Commit
id: commit
Expand Down
6 changes: 3 additions & 3 deletions tap-snapshots/test/apply/source-snapshots.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ jobs:
RELEASE_COMMENT_ID: \${{ needs.release.outputs.comment-id }}
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
run: |
npm exec --offline -- template-oss-release-manager
npm exec --offline -- template-oss-release-manager --lockfile=false
npm run rp-pull-request --ignore-scripts --if-present
- name: Commit
id: commit
Expand Down Expand Up @@ -2392,7 +2392,7 @@ jobs:
RELEASE_COMMENT_ID: \${{ needs.release.outputs.comment-id }}
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
run: |
npm exec --offline -- template-oss-release-manager
npm exec --offline -- template-oss-release-manager --lockfile=false
npm run rp-pull-request --ignore-scripts -ws -iwr --if-present
- name: Commit
id: commit
Expand Down Expand Up @@ -3705,7 +3705,7 @@ jobs:
RELEASE_COMMENT_ID: \${{ needs.release.outputs.comment-id }}
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
run: |
npm exec --offline -- template-oss-release-manager
npm exec --offline -- template-oss-release-manager --lockfile=false
npm run rp-pull-request --ignore-scripts -ws -iwr --if-present
- name: Commit
id: commit
Expand Down

0 comments on commit 110b63a

Please sign in to comment.