Skip to content

Commit

Permalink
feat(workflow): add Deno and NPM registry env variables
Browse files Browse the repository at this point in the history
Added DENO_VERSION and NPM_REGISTRY environment variables to the release
workflow. Updated the setup steps to use these variables. Removed
hardcoded values for Deno version and NPM registry URL.
  • Loading branch information
ryoppippi committed Aug 30, 2024
1 parent 317d069 commit 72a0823
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: release
env:
NODE_VERSION: lts/*
BUN_VERSION: latest
DENO_VERSION: v1.x
NPM_REGISTRY: https://registry.npmjs.org
PACKAGE_DIR: ${{github.workspace}}/packages/unplugin-typia

on:
Expand Down Expand Up @@ -47,19 +49,18 @@ jobs:
steps:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
deno-version: ${{ env.DENO_VERSION }}
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
registry-url: ${{ env.NPM_REGISTRY }}
- name: Publish to npm
run: deno run -A jsr:@ryoppippi/mirror-jsr-to-npm
env:
PACKAGE_NAME: "@ryoppippi/unplugin-typia"
PACKAGE_DESCRIPTION: "unplugin for typia"
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Set your npm token as a GitHub secret
NPM_CONFIG_PROVENANCE: true # If you publish with provenance
NPM_OPTIONS: "--provenance --access public"

release:
needs:
Expand Down

0 comments on commit 72a0823

Please sign in to comment.