diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..fb78a3b5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: release + +on: push + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # - name: Verify branch name + # if: github.ref != 'refs/heads/main' + # run: | + # echo "🚨 The release must start from the main branch!" + # exit 1 + + - name: Configure releaser details + run: | + git config user.name "${GITHUB_ACTOR}" + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + + - name: Install pnpm + uses: wyvox/action-setup-pnpm@v3 + with: + pnpm-version: 8.5.1 + node-version: 18.x + node-registry-url: "https://registry.npmjs.org" + + - name: Trigger release script + run: pnpm run release -- --dry-run + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.release-it.js b/.release-it.js index 02ad2d0c..9dad2b78 100644 --- a/.release-it.js +++ b/.release-it.js @@ -10,6 +10,7 @@ module.exports = { }, git: { tagName: "v${version}", + commitMessage: "chore: release v${version}" }, github: { release: true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 38a78dd3..dc9b3b99 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -178,7 +178,7 @@ importers: specifier: 1.2.1 version: 1.2.1(@glimmer/component@1.1.2)(@glint/template@1.2.1)(ember-cli-htmlbars@6.3.0)(ember-modifier@4.1.0) '@qonto/ember-lottie': - specifier: 1.0.0 + specifier: 1.0.1 version: link:../ember-lottie '@qonto/eslint-config-typescript': specifier: 1.0.0-rc.0