diff --git a/.github/workflows/npm-publish-dev.yml b/.github/workflows/npm-publish-dev.yml index ed71db0..f439145 100644 --- a/.github/workflows/npm-publish-dev.yml +++ b/.github/workflows/npm-publish-dev.yml @@ -34,13 +34,12 @@ jobs: - name: 🛠️ Build run: npm run build - - name: Publish all packages - run: | - for dir in packages/*; do - if [ -d "$dir" ]; then - echo "Publishing $dir package" - cd "$dir" - npm publish --tag dev - cd .. - fi - done + - name: Publish packages to NPM with dev tag + id: changesets + uses: changesets/action@v1 + with: + version: npm run changeset:version + publish: npm run changeset:publish-dev + env: + NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN_CHRIS }} + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 76bd1e9..0884610 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,16 +25,10 @@ jobs: - run: npm ci --ignore-scripts - - name: Set Git Ref - id: set-ref - run: echo "::set-output name=ref::${{ github.event.inputs.ref }}" - - - name: Create Release Pull Request or Publish to npm + - name: Create Release Pull Request id: changesets uses: changesets/action@v1 - with: - version: npm run changeset:version - publish: npm run changeset:publish + #with: + #version: npm run changeset:version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN_CHRIS }} diff --git a/package.json b/package.json index 2b9dc5b..b57c6d9 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "test": "npm run build && jest --verbose --runInBand ./test/functional", "changeset": "changeset", "changeset:version": "changeset version && npm i --package-lock-only", - "changeset:publish": "npm run build && changeset publish" + "changeset:publish": "npm run build && changeset publish", + "changeset:publish-dev": "npm run build && changeset publish --tag dev" }, "devDependencies": { "@babel/preset-env": "^7.19.4",