Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ committed Aug 9, 2024
1 parent febe566 commit ab6f38f
Show file tree
Hide file tree
Showing 3 changed files with 778 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish
on:
push:
branches:
- 'main'

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.6
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'pnpm'

- run: pnpm install --frozen-lockfile
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run ci:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
"scripts": {
"compile": "tsup && cp dist/legacy/legacy.cjs legacy.js && cp dist/legacy/legacy.d.cts legacy.d.ts",
"test": "vitest run",
"publish": "pnpm run compile && npm publish --access public --no-git-checks"
"pub": "pnpm run compile && npm publish --access public --no-git-checks",
"changeset": "changeset",
"ci:version": "changeset version",
"ci:release": "changeset publish"
},
"repository": {
"type": "git",
Expand All @@ -68,6 +71,7 @@
"node": ">= 10"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@swc/core": "^1.6.13",
"@types/node": "^20.14.10",
"terser": "^5.31.2",
Expand Down
Loading

0 comments on commit ab6f38f

Please sign in to comment.