diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e97caa4..c03d63e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,8 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index a88a0de..8e817cd 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -75,3 +75,13 @@ await build({ Deno.copyFileSync("LICENSE", "npm/LICENSE"); Deno.copyFileSync("README.md", "npm/README.md"); + +// Fix wrong .npmignore file +Deno.writeFileSync( + "npm/.npmignore", + new TextEncoder().encode( + new TextDecoder() + .decode(Deno.readFileSync("npm/.npmignore")) + .replace("src/", "/src/"), + ), +); diff --git a/version.ts b/version.ts index c640f4c..508b8ad 100644 --- a/version.ts +++ b/version.ts @@ -4,4 +4,4 @@ * * Changing this value creates a new release. */ -export const version = "2.1.0"; +export const version = "2.2.1";