Skip to content

Commit

Permalink
Setup release using Release Please
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldev5 committed Jan 7, 2024
1 parent 83b9b5a commit fff256b
Show file tree
Hide file tree
Showing 4 changed files with 4,193 additions and 2,281 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/deploy.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
branches:
- main

name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: simple
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
if: ${{ steps.release.outputs.release_created }}
- run: pnpm install
if: ${{ steps.release.outputs.release_created }}
- run: pnpm compile
if: ${{ steps.release.outputs.release_created }}
- run: pnpm format:check
if: ${{ steps.release.outputs.release_created }}
- run: pnpm lint:check
if: ${{ steps.release.outputs.release_created }}
- run: pnpm test
if: ${{ steps.release.outputs.release_created }}
- run: pnpm build
if: ${{ steps.release.outputs.release_created }}
- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- run: pnpm publish --no-git-checks --access=public
if: ${{ steps.release.outputs.release_created }}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"test": "vitest",
"updateAssets": "node --loader ts-node/esm --experimental-specifier-resolution=node ./scripts/updateAssets.ts",
"updatePallets": "node --loader ts-node/esm --experimental-specifier-resolution=node ./scripts/updatePallets.ts",
"release": "pnpm runAll && pnpm build && standard-version && git push --follow-tags",
"runAll": "pnpm compile && pnpm format:write && pnpm lint && pnpm test",
"test:e2e": "vitest run --config ./vitest.config.e2e.ts --sequence.concurrent"
},
Expand Down Expand Up @@ -71,7 +70,6 @@
"rollup": "^4.4.1",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-typescript2": "^0.36.0",
"standard-version": "^9.5.0",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
Expand Down
Loading

0 comments on commit fff256b

Please sign in to comment.