From 9d9aeb906e61d8471c586be9db7356653c954b58 Mon Sep 17 00:00:00 2001 From: Wangshu Hong Date: Wed, 9 Aug 2023 15:19:41 +0800 Subject: [PATCH 1/2] Re-enable publish to npm registry --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 23a334d943..8992b42102 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -107,7 +107,7 @@ jobs: rm flutter/pubspec.yaml.bk # Needs to be "-E" instead of "-r" on macOS - - name: Replace version number in package.json + - name: Replace version number in svg-icons/package.json run: | sed -i.bk -r "s/\"version\": \"[0-9]+\.[0-9]+\.[0-9]+\"/\"version\": \"$NEW_VERSION\"/g" packages/svg-icons/package.json rm packages/svg-icons/package.json.bk @@ -158,6 +158,12 @@ jobs: npm run build working-directory: packages/react-native-icons + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + access: public + package: packages/svg-icons/package.json + - uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }} From af80648a4737c2a2719e7ff830f7fd731c6d2d9c Mon Sep 17 00:00:00 2001 From: Wangshu Hong Date: Tue, 15 Aug 2023 08:49:56 +0800 Subject: [PATCH 2/2] Remove duplicated publish react native icons task --- .github/workflows/publish.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8992b42102..81cbd42c9b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -170,12 +170,6 @@ jobs: access: public package: packages/svg-sprites/package.json - - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} - access: public - package: packages/react-native-icons/package.json - - uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }}