Skip to content

Commit

Permalink
chore: prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio committed May 5, 2023
1 parent 12b5d02 commit 33df1db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .config/.releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# spec: https://semantic-release.gitbook.io/semantic-release/usage/configuration

branches: ['main']
plugins:
# Determine the type of release by analyzing commits.
# ie: Major, Minor or Patch
Expand Down Expand Up @@ -45,3 +46,6 @@ plugins:

# Create new github release
- "@semantic-release/github"

# Create new npm release
- "@semantic-release/npm"
29 changes: 8 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,14 @@ jobs:
run: deno task build

- name: Release
run: pnpm --filter=./dist semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm semantic-release

- name: Add lib, types and docs to Git
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git add --force @types/
git add --force lib/
- name: Commit files
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "chore(gh-bot): :rocket: release" -a
- name: Push changes
if: ${{ github.ref == 'refs/heads/main' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
# - name: Push changes
# if: ${{ github.ref == 'refs/heads/main' }}
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref }}
4 changes: 3 additions & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ await build({
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"@semantic-release/release-notes-generator": "^11.0.1",
"semantic-release": "^21.0.2"
"semantic-release": "^21.0.2",
"@semantic-release/npm": "^10.0.3",
"conventional-changelog-conventionalcommits": "^5.0.0",
}
},
compilerOptions: {
Expand Down

0 comments on commit 33df1db

Please sign in to comment.