diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 73a439660a2..665d8e45af2 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -18,22 +18,32 @@ jobs: with: command: manifest - # The logic below handles the npm publication: - # - uses: actions/checkout@v3 - # if: ${{ steps.release.outputs.release_created }} + # The logic below handles the publication: + - name: Checkout code + if: ${{ steps.release.outputs.release_created }} + uses: actions/checkout@v3 + with: + ref: ${{ env.REF_BRANCH }} - # - name: Use Node.js - # uses: actions/setup-node@v3 - # with: - # node-version: 16 - # registry-url: "https://registry.npmjs.org" - # if: ${{ steps.release.outputs.release_created }} + - name: Use Node.js + if: ${{ steps.release.outputs.release_created }} + uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: "https://registry.npmjs.org" + cache: yarn - # - run: npm ci - # if: ${{ steps.release.outputs.release_created }} + - name: Install / Build + if: ${{ steps.release.outputs.releases_created }} + run: | + yarn - # - run: npm publish - # env: - # NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM}} - # if: ${{ steps.release.outputs.release_created }} + # Release Please has already incremented versions and published tags, so we just + # need to publish all unpublished versions to NPM here + # See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package + - name: Publish to NPM + if: ${{ steps.release.outputs.releases_created }} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: yarn lerna publish from-package --no-push --no-private --yes # cspell:ignore noreply diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 7d1b9c39cd5..8ca273ad2f6 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -27,22 +27,28 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ env.REF_BRANCH }} + - uses: actions/setup-node@v3 with: cache: yarn + - name: Update run: | yarn yarn upgrade + - name: update package.json run: | npx package-json-dependency-updater -u + - name: Install run: | yarn + + # Catch any new dictionaries and add them to the config. - name: Update Release-Please packages - # Catch any new dictionaries and add them to the config. run: ./scripts/gen-release-please-config.sh + - name: Lint run: | yarn lint