From f54d0749fbffdcdcfd842388073cab73182406f3 Mon Sep 17 00:00:00 2001 From: Steven Ontong Date: Mon, 13 Nov 2023 16:51:17 +0200 Subject: [PATCH] cleanup --- .github/workflows/dev-packages.yaml | 60 ------------------------- .github/workflows/release.yml | 9 +++- packages/powersync-sdk-web/package.json | 2 +- 3 files changed, 9 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/dev-packages.yaml diff --git a/.github/workflows/dev-packages.yaml b/.github/workflows/dev-packages.yaml deleted file mode 100644 index 7045249..0000000 --- a/.github/workflows/dev-packages.yaml +++ /dev/null @@ -1,60 +0,0 @@ -name: Packages Deploy - -on: workflow_dispatch - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -jobs: - release: - name: Publish Dev Packages - runs-on: ubuntu-latest - - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - - name: Setup Node.js 18 - uses: actions/setup-node@v3 - with: - node-version: 20 - - - name: Setup PNPM - run: | - npm install -g pnpm@8 - echo "PNPM version: $(pnpm -v)" - - - name: Setup PNPM - run: | - echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc - - - name: Install Dependencies - run: pnpm install --frozen-lockfile - - - name: Build packages - run: pnpm build:packages - - - id: is_dev - run: | - IS_DEV=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/changeset-release/main' }} - echo "value=$IS_DEV" >> $GITHUB_OUTPUT - - - name: Publish dev packages - if: ${{ steps.is_dev.outputs.value == 'true' }} - run: | - pnpm changeset version --no-git-tag --snapshot dev - pnpm changeset publish --tag next - - - name: Create Release Pull Request or Publish to npm - if: ${{ steps.is_dev.outputs.value == 'false' }} - id: changesets - uses: changesets/action@v1 - with: - version: pnpm ci:version - commit: 'chore: update versions' - title: '[Chore] update versions' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Publish production components. - if: ${{ github.ref == 'refs/heads/main' && steps.changesets.outputs.hasChangesets == 'false' }} - run: echo 'testing only' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5bdd42..b57e727 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v3 - - name: Setup Node.js 18 + - name: Setup Node.js 20 uses: actions/setup-node@v3 with: node-version: 20 @@ -28,6 +28,11 @@ jobs: - name: Setup PNPM run: | npm install -g pnpm@8 + echo "PNPM version: $(pnpm -v)" + + - name: Setup PNPM + run: | + echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc - name: Install Dependencies run: pnpm install --frozen-lockfile @@ -54,6 +59,8 @@ jobs: version: pnpm ci:version commit: 'chore: update versions' title: '[Chore] update versions' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish production components. if: ${{ github.ref == 'refs/heads/main' && steps.changesets.outputs.hasChangesets == 'false' }} diff --git a/packages/powersync-sdk-web/package.json b/packages/powersync-sdk-web/package.json index 7e3652a..f374d74 100644 --- a/packages/powersync-sdk-web/package.json +++ b/packages/powersync-sdk-web/package.json @@ -13,7 +13,7 @@ }, "publishConfig": { "registry": "https://registry.npmjs.org/", - "access": "restricted" + "access": "public" }, "homepage": "https://docs.powersync.co", "scripts": {