From 751f7cb1e333b1e44fa6d87922fef17b329a784b Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Mon, 31 Jul 2023 21:21:43 +0200 Subject: [PATCH] Adjust workflow --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 6 +----- docs/.vitepress/config.ts | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b761df698..4c983d065 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,6 @@ jobs: if: github.repository == 'lucide-icons/lucide' needs: create-release uses: './.github/workflows/release.yml' + secrets: inherit with: version: ${{ needs.create-release.outputs.VERSION }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ad7c8fec..46d4de074 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,6 @@ on: required: true description: Version type: string - NPM_TOKEN: - description: NPM token to publish - type: string - required: true workflow_dispatch: inputs: @@ -135,7 +131,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Set Auth Token - run: npm config set //registry.npmjs.org/:_authToken ${{ inputs.NPM_TOKEN || secrets.NPM_TOKEN }} + run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} - name: Set new version run: pnpm --filter lucide-static version --new-version ${{ needs.pre-release.outputs.VERSION }} --no-git-tag-version diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index b329dfecd..419a8340c 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -40,7 +40,7 @@ export default defineConfig({ }, head: [ [ 'script', { - src: 'https://plausible.io/js/script.js', + src: 'https://analytics.lucide.dev/js/script.js', 'data-domain': 'lucide.dev', defer: '' }],