From 240c83eacbad48e8e3ff578cfd3d737e8504f34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Fri, 17 Jan 2025 03:36:31 +0100 Subject: [PATCH] CI --- .gitea/workflows/publish.yaml | 11 +++++++---- .gitea/workflows/test-build.yaml | 4 +++- package.json | 1 - 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index c251086..7289f97 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -15,15 +15,18 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" + registry-url: "https://registry.npmjs.org" - name: Clone repo uses: actions/checkout@v4 - name: Install dependencies run: bun install --frozen-lockfile - name: Build - run: npm run build + run: | + cd packages/reffuse + bun run build - name: Publish run: | cd packages/reffuse - npm config set @thilawyn:registry https://git.valverde.cloud/api/packages/thilawyn/npm/ - npm config set -- //git.valverde.cloud/api/packages/thilawyn/npm/:_authToken "${{ vars.NODE_AUTH_TOKEN }}" - npm publish + npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitea/workflows/test-build.yaml b/.gitea/workflows/test-build.yaml index bb89a21..ee239a7 100644 --- a/.gitea/workflows/test-build.yaml +++ b/.gitea/workflows/test-build.yaml @@ -18,7 +18,9 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile - name: Build - run: bun run build + run: | + cd packages/reffuse + bun run build - name: Pack run: | cd packages/reffuse diff --git a/package.json b/package.json index ef1bbed..6d4beab 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "private": true, "workspaces": ["./packages/*"], "scripts": { - "build": "bun run --filter 'reffuse' build", "lint:tsc": "bun run --filter '*' lint:tsc", "clean:cache": "rm -f tsconfig.tsbuildinfo", "clean:dist": "rm -rf dist",