From 372de37053a86a631a7a3b55bd758c64f129a1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Hlad=C3=ADk?= Date: Sat, 10 Feb 2024 18:40:07 +0100 Subject: [PATCH] chore(scripts): scripts renamed --- .github/workflows/main.yml | 3 +-- package.json | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd9ce02..b318617 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,10 +38,9 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - # Publish to GitHub Package Registry - name: 🛠️ Set up package for GPR if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false - run: yarn gpr:setup + run: yarn script:gpr-setup - name: 🛠️ Use GPR if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false diff --git a/package.json b/package.json index ef3ba81..75d6603 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,11 @@ "builders": "builders.json", "scripts": { "build": "rimraf dist && tsc", - "postbuild": "copyfiles --up 1 ./src/**/*.json ./dist && copyfiles ./package.json ./builders.json ./README.md ./LICENSE ./dist && yarn prepare-dist", + "postbuild": "copyfiles --up 1 ./src/**/*.json ./dist && copyfiles ./package.json ./builders.json ./README.md ./LICENSE ./dist && yarn script:prepare-dist", "build:watch": "tsc-watch --onSuccess 'yarn postbuild'", "publish:npmjs": "yarn build && npm publish --folder dist", - "prepare-dist": "yarn tsx ./scripts/prepare-dist.ts", - "gpr:setup": "yarn tsx ./scripts/gpr-setup.ts", + "script:gpr-setup": "yarn tsx scripts/gpr-setup.ts", + "script:prepare-dist": "yarn tsx scripts/prepare-dist.ts", "prepare": "husky install", "version": "auto-changelog -p && git add CHANGELOG.md", "postversion": "git push && git push --follow-tags",