Skip to content

Commit

Permalink
fix: Package now built with vite, includes src + declarationMap (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
evrys authored Aug 1, 2024
1 parent 25e9b9b commit 7b12cd2
Show file tree
Hide file tree
Showing 10 changed files with 801 additions and 100 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: check

on:
pull_request:
branches:
- main

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: 'npm'
- run: npm clean-install
- run: npm run tsc
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: 'npm'
- run: npm clean-install
- run: npm run test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: 'npm'
- run: npm clean-install
- run: npm run build
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# semantic-release action
# Derived from https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions

name: Release
name: release
on:
push:
branches:
Expand All @@ -11,7 +11,7 @@ permissions:
contents: read # for checkout

jobs:
release:
build-and-release:
name: Release
runs-on: ubuntu-latest
permissions:
Expand All @@ -21,17 +21,19 @@ jobs:
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures

# semantic-release skips non-configured branches or pull-requests
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading

0 comments on commit 7b12cd2

Please sign in to comment.