Skip to content

Commit

Permalink
chore(release): move from changeset to semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjake committed Aug 13, 2024
1 parent 60277b6 commit 97ecf8e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 639 deletions.
11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eight-walls-applaud.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/little-pumpkins-sin.md

This file was deleted.

24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ env:
MONGOMS_PREFER_GLOBAL_PATH: true
jobs:
release:
if: "!contains(github.event.head_commit.message, '[skip ci]')"

name: Release
runs-on: ubuntu-latest
permissions:
packages: write # to be able to publish a GitHub release
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
Expand Down Expand Up @@ -49,17 +50,20 @@ jobs:
- name: Build
run: pnpm build

- name: Prep commit message
run: |
echo "NEW_VERSION=$(pnpm changeset status --output=release.json && jq -r '.releases[0].newVersion' release.json && rm release.json)" >> "$GITHUB_ENV"
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: pnpm audit signatures

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
- name: Release
uses: cycjimmy/semantic-release-action@v4
with:
title: "Release v${{env.NEW_VERSION}}"
commit: "chore(release): v${{env.NEW_VERSION}}"
publish: pnpm ci:publish
branches: |
[
'+([0-9])?(.{+([0-9]),x}).x',
'main'
]
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
"rfc6902": "^5.1.1"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.7",
"@changesets/types": "^6.0.0",
"@mnrendra/rollup-plugin-mixexport": "^1.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
Expand Down
Loading

0 comments on commit 97ecf8e

Please sign in to comment.