Skip to content

Commit

Permalink
chore: update esm
Browse files Browse the repository at this point in the history
  • Loading branch information
hunghg255 committed Aug 17, 2024
1 parent 7428d9e commit 1b1a24e
Show file tree
Hide file tree
Showing 14 changed files with 5,653 additions and 9,016 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches:
- main

pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install
run: pnpm install

- name: Lint
run: pnpm lint

- name: Test
run: pnpm build
25 changes: 0 additions & 25 deletions .github/workflows/main.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/publish.yml

This file was deleted.

23 changes: 20 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,33 @@ concurrency:

jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: lts/*
registry-url: https://registry.npmjs.org/

- name: Install
run: pnpm install

- run: npx changeloggithub@latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Publish
run: npm publish --access=public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
25 changes: 0 additions & 25 deletions CHANGELOG.md

This file was deleted.

1 change: 1 addition & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default defineBuildConfig({
entries: ['src/index', 'src/cli'],
clean: true,
declaration: true,
failOnWarn: false,
rollup: {
inlineDependencies: true,
emitCJS: true,
Expand Down
Loading

0 comments on commit 1b1a24e

Please sign in to comment.