diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b35ed09 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release +on: + push: + branches: + - main + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + Release: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Install bun + uses: oven-sh/setup-bun@v1 + - name: Install dependencies + run: bun install + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: bun run semantic-release diff --git a/bun.lockb b/bun.lockb index 1cd5761..c836e8a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a897109..ba5e279 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@wallpants/radix-colors", + "name": "hsl-radix-colors", "author": "wallpants", "type": "module", "version": "0.0.0", @@ -33,7 +33,8 @@ } }, "devDependencies": { - "@types/bun": "latest" + "@types/bun": "latest", + "semantic-release": "^23.1.1" }, "peerDependencies": { "typescript": "^5.0.0"