-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: introduce stateless release process (#2825)
- Loading branch information
Showing
21 changed files
with
652 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,13 +271,9 @@ jobs: | |
- name: Set git username | ||
run: git config --global user.name "webiny-bot" | ||
|
||
- name: Version packages (no push, no changelog) | ||
- name: Version and publish to Verdaccio | ||
working-directory: next | ||
run: yarn lerna:version:verdaccio | ||
|
||
- name: Release to Verdaccio | ||
working-directory: next | ||
run: yarn lerna:publish:verdaccio | ||
run: yarn release --type=verdaccio | ||
|
||
- name: Create verdaccio-files artifact | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -300,8 +296,8 @@ jobs: | |
- name: Create a new Webiny project | ||
working-directory: xyz | ||
run: > | ||
npx create-webiny-project@next test-project | ||
--tag next --no-interactive | ||
npx create-webiny-project@local-npm test-project | ||
--tag local-npm --no-interactive | ||
--assign-to-yarnrc '{"npmRegistryServer":"http://localhost:4873","unsafeHttpWhitelist":["localhost"]}' | ||
--template-options '{"region":"${{ env.AWS_REGION }}","storageOperations":"ddb"}' | ||
|
@@ -525,13 +521,9 @@ jobs: | |
- name: Set git username | ||
run: git config --global user.name "webiny-bot" | ||
|
||
- name: Version packages (no push, no changelog) | ||
working-directory: next | ||
run: yarn lerna:version:verdaccio | ||
|
||
- name: Release to Verdaccio | ||
- name: Version and publish to Verdaccio | ||
working-directory: next | ||
run: yarn lerna:publish:verdaccio | ||
run: yarn release --type=verdaccio | ||
|
||
- name: Create verdaccio-files artifact | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -554,8 +546,8 @@ jobs: | |
- name: Create a new Webiny project | ||
working-directory: xyz | ||
run: > | ||
npx create-webiny-project@next test-project | ||
--tag next --no-interactive | ||
npx create-webiny-project@local-npm test-project | ||
--tag local-npm --no-interactive | ||
--assign-to-yarnrc '{"npmRegistryServer":"http://localhost:4873","unsafeHttpWhitelist":["localhost"]}' | ||
--template-options '{"region":"${{ env.AWS_REGION }}","storageOperations":"ddb-es"}' | ||
|
@@ -679,7 +671,14 @@ jobs: | |
workdir: next/cypress | ||
message-text: Cypress tests failed! Screenshots have been placed in this thread, good luck. | ||
npm-release-unstable: | ||
needs: [init, code-analysis, jest-tests, e2e-wby-cms-ddb-cypress-tests, e2e-wby-cms-ddb-es-cypress-tests] | ||
needs: | ||
[ | ||
init, | ||
code-analysis, | ||
jest-tests, | ||
e2e-wby-cms-ddb-cypress-tests, | ||
e2e-wby-cms-ddb-es-cypress-tests | ||
] | ||
name: NPM release ("unstable" tag) | ||
runs-on: webiny-js-4-cores | ||
environment: release | ||
|
@@ -720,10 +719,5 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "webiny-bot" | ||
- name: Version packages | ||
run: | | ||
yarn lerna version 0.0.0-unstable.$(git rev-parse --short HEAD) --force-publish --no-push --no-git-tag-version --no-changelog --yes | ||
git commit -am "chore: version packages" | ||
- name: Publish packages to NPM | ||
run: yarn lerna publish from-package --dist-tag unstable --yes | ||
- name: Version and publish to NPM | ||
run: yarn release --type=unstable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/index.js b/index.js | ||
index 078012845cadbee7cf45de6f101384ed99d269e5..27968d61d9a5bf8a85b8fc2a44e7e012d1dc7e2a 100644 | ||
--- a/index.js | ||
+++ b/index.js | ||
@@ -248,7 +248,8 @@ class PublishCommand extends Command { | ||
} | ||
|
||
verifyWorkingTreeClean() { | ||
- return describeRef(this.execOpts).then(checkWorkingTree.throwIfUncommitted); | ||
+ return Promise.resolve(); | ||
+ // return describeRef(this.execOpts).then(checkWorkingTree.throwIfUncommitted); | ||
} | ||
|
||
detectFromGit() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.