Skip to content

Commit

Permalink
Add package release
Browse files Browse the repository at this point in the history
  • Loading branch information
klovaaxel committed Aug 4, 2024
1 parent 111fe70 commit c288aa8
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Publish

on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"

- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Build project
run: bun run build

- name: Publish to npm
run: npm publish --access public

- name: Verify publish
run: npm info cypress-ct-html

0 comments on commit c288aa8

Please sign in to comment.