Sfoglia il codice sorgente

meta: temporary adjust release script for the beta

Antoine du Hamel 2 anni fa
parent
commit
602f9731c3

+ 0 - 2
.github/workflows/release-candidate.yml

@@ -39,8 +39,6 @@ jobs:
         run: corepack yarn version apply --all --json | jq -s > releases.json
         run: corepack yarn version apply --all --json | jq -s > releases.json
       - name: Prepare changelog
       - name: Prepare changelog
         run: corepack yarn workspace @uppy-dev/release update-changelogs releases.json | xargs git add
         run: corepack yarn workspace @uppy-dev/release update-changelogs releases.json | xargs git add
-      - name: Update contributors table
-        run: corepack yarn contributors:save && corepack yarn remark -foq README.md && git add README.md
       - name: Update CDN URLs
       - name: Update CDN URLs
         run: corepack yarn workspace @uppy-dev/release update-version-URLs | xargs git add
         run: corepack yarn workspace @uppy-dev/release update-version-URLs | xargs git add
       - name: Stage changes and remove temp files
       - name: Stage changes and remove temp files

+ 2 - 2
.github/workflows/release.yml

@@ -41,7 +41,7 @@ jobs:
       - name: Login to NPM
       - name: Login to NPM
         run: corepack yarn config set npmAuthToken ${{ toJSON(secrets.NPM_TOKEN) }}
         run: corepack yarn config set npmAuthToken ${{ toJSON(secrets.NPM_TOKEN) }}
       - name: Publish to NPM
       - name: Publish to NPM
-        run: corepack yarn workspaces foreach --no-private npm publish --access public --tolerate-republish
+        run: corepack yarn workspaces foreach --no-private npm publish --access public --tag next --tolerate-republish
       - name: Merge PR
       - name: Merge PR
         id: merge
         id: merge
         run: |
         run: |
@@ -62,7 +62,7 @@ jobs:
         id: uppyVersion
         id: uppyVersion
         run: jq -r '"##[set-output name=version;]"+.version' < packages/uppy/package.json
         run: jq -r '"##[set-output name=version;]"+.version' < packages/uppy/package.json
       - name: Create GitHub release
       - name: Create GitHub release
-        run: gh release create uppy@${{ steps.uppyVersion.outputs.version }} -t "Uppy ${{ steps.uppyVersion.outputs.version }}" -F CHANGELOG.diff.md
+        run: gh release create uppy@${{ steps.uppyVersion.outputs.version }} -t "Uppy ${{ steps.uppyVersion.outputs.version }}" -F CHANGELOG.diff.md --prerelease
         env:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       - name: Upload `uppy` to CDN
       - name: Upload `uppy` to CDN

+ 2 - 2
private/release/choose-semverness.js

@@ -81,7 +81,7 @@ export default async function pickSemverness (
         { title: 'Minor', value: 'minor' },
         { title: 'Minor', value: 'minor' },
         { title: 'Major', value: 'major' },
         { title: 'Major', value: 'major' },
       ],
       ],
-      initial: 2,
+      initial: 0,
     })
     })
 
 
     if (!response.value) {
     if (!response.value) {
@@ -141,7 +141,7 @@ export default async function pickSemverness (
           { title: 'Minor', value: 'minor', disabled: robodogSemverness === 'major' },
           { title: 'Minor', value: 'minor', disabled: robodogSemverness === 'major' },
           { title: 'Major', value: 'major' },
           { title: 'Major', value: 'major' },
         ],
         ],
-        initial: 2,
+        initial: 0,
       })
       })
 
 
       releaseFile.write(`  "@uppy/robodog": ${response.value}\n`)
       releaseFile.write(`  "@uppy/robodog": ${response.value}\n`)

+ 1 - 1
private/release/commit-and-open-pr.js

@@ -21,7 +21,7 @@ export default async function commit (spawnOptions, ...files) {
   const remote = spawnSync('/bin/sh', ['-c', getRemoteCommamnd]).stdout.toString().trim()
   const remote = spawnSync('/bin/sh', ['-c', getRemoteCommamnd]).stdout.toString().trim()
                  || `git@github.com:${REPO_OWNER}/${REPO_NAME}.git`
                  || `git@github.com:${REPO_OWNER}/${REPO_NAME}.git`
 
 
-  console.log(`Please run \`git push ${remote} ${sha}:refs/heads/release\`.`)
+  console.log(`Please run \`git push ${remote} ${sha}:refs/heads/release-beta\`.`)
   console.log(`An automation will kick off and open a release candidate PR 
   console.log(`An automation will kick off and open a release candidate PR 
     on the GitHub repository. Do not merge it manually! Review the PR (you may need to close and
     on the GitHub repository. Do not merge it manually! Review the PR (you may need to close and
     re-open so the CI and test will run on it). If everything looks good, approve the PR — 
     re-open so the CI and test will run on it). If everything looks good, approve the PR — 

+ 1 - 1
private/release/config.js

@@ -1,3 +1,3 @@
 export const REPO_OWNER = 'transloadit'
 export const REPO_OWNER = 'transloadit'
 export const REPO_NAME = 'uppy'
 export const REPO_NAME = 'uppy'
-export const TARGET_BRANCH = 'main'
+export const TARGET_BRANCH = '3.x'