diff --git a/.github/workflows/e2e-next-example.yml b/.github/workflows/e2e-next-example.yml index 7cc133cf3..47cc71cc6 100644 --- a/.github/workflows/e2e-next-example.yml +++ b/.github/workflows/e2e-next-example.yml @@ -31,6 +31,7 @@ jobs: - name: install and build packages working-directory: ./ run: | + rm package-lock.json npm install npm run build # To ensure PR changes are tested accurately, we replace the diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index ecc052e92..fd12e5d24 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -8,6 +8,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '16' + - run: rm package-lock.json - run: npm install - run: npm run build - run: npm run lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 3ee3b9f02..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Possibly publish NPM Packages -on: - push: - branches: - - canary - paths: - - 'packages/core/package.json' - - 'packages/react/package.json' - - 'packages/next/package.json' -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '16' - - run: npm install - - run: npm run build - - run: npm test - - name: Publish core - uses: JS-DevTools/npm-publish@v1 - with: - package: 'packages/core/package.json' - token: ${{ secrets.NPM_TOKEN }} - access: 'public' - check-version: TRUE - - name: Publish react - uses: JS-DevTools/npm-publish@v1 - with: - package: 'packages/react/package.json' - token: ${{ secrets.NPM_TOKEN }} - access: 'public' - check-version: TRUE - - name: Publish next - uses: JS-DevTools/npm-publish@v1 - with: - package: 'packages/next/package.json' - token: ${{ secrets.NPM_TOKEN }} - access: 'public' - check-version: TRUE diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index a7c1eb49e..32e50ba4b 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -21,6 +21,10 @@ jobs: with: node-version: 16.x + - name: Remove package-lock.json + run: | + rm package-lock.json + - name: Install Dependencies run: npm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8ad81380..4d305fe1f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '16' + - run: rm package-lock.json - run: npm install - run: npm run build - run: npm test