diff --git a/.changeset/config.json b/.changeset/config.json index 9a1fd52830..5cb30af192 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -5,10 +5,14 @@ "fixed": [], "linked": [], "access": "public", - "baseBranch": "master", + "baseBranch": "develop", "updateInternalDependencies": "patch", "ignore": ["integration-tests-api", "integration-tests-plugins", "integration-tests-repositories"], "snapshot": { "useCalculatedVersion": true + }, + "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { + "onlyUpdatePeerDependentsWhenOutOfRange": true } + } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..427863af96 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +name: Release + +on: + push: + branches: + - develop + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Version packages PR + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Setup Node.js 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Creating .npmrc + run: | + cat << EOF > "$HOME/.npmrc" + //registry.npmjs.org/:_authToken=$NPM_TOKEN + EOF + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Install Dependencies + run: yarn + + - name: Build packages + run: yarn build + + - name: Create Release Pull Request + uses: changesets/action@v1 + with: + version: yarn version + publish: yarn release + commit: "chore: Release" + title: "chore: Release" + createGithubReleases: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 223f1891d4..21715a298d 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,8 @@ "develop:create:db": "ts-node --transpile-only ./integration-tests/development/create-database.js", "release:next": "changeset publish --no-git-tags --snapshot --tag next", "version:next": "changeset version --snapshot next", + "release": "changeset publish", + "version": "changeset version && yarn install --no-immutable", "check:freshness": "node ./scripts/freshness-check.js" }, "dependencies": {