diff --git a/.github/workflows/lint-and-build-yarn.yml b/.github/workflows/lint-and-build-yarn.yml index 5296a68..c5b6a20 100644 --- a/.github/workflows/lint-and-build-yarn.yml +++ b/.github/workflows/lint-and-build-yarn.yml @@ -73,34 +73,34 @@ jobs: node-version: ${{ inputs.node-version }} - name: Install dependencies - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: cmd: install dir: ${{ inputs.working-directory }} - name: Lint the project - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: cmd: lint dir: ${{ inputs.working-directory }} if: ${{ inputs.lint }} - name: Format the project - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: cmd: format dir: ${{ inputs.working-directory }} if: ${{ inputs.format }} - name: Test the project - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: cmd: test dir: ${{ inputs.working-directory }} if: ${{ inputs.test }} - name: Build the project - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: cmd: build dir: ${{ inputs.working-directory }} diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 9487f20..d693229 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -45,7 +45,7 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish - run: npm publish --access public + run: npm version from-git --no-commit-hooks --no-git-tag-version && npm publish --access public publish-npm-lerna: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 5a1aaae..4b3271f 100644 --- a/README.md +++ b/README.md @@ -28,18 +28,18 @@ jobs: ### Inputs -| Input name | Description | Required | Options | Default value | -|-------------------|--------------------------------------------------------------|----------|------------------------|---------------| -| working-directory | The directory where the project is located. | ☐ | | `.` | -| node-version | The version of Node.js to use. | ☐ | `18.x`, `20.x`, `22.x` | `20.x` | -| artifact-name | The name of the artifact to use. | ☐ | | | -| artifact-path | The path where the artifact should be stored. | ☐ | | | -| prepare-command | The command to run before building (and and after checkout). | ☐ | | | -| cleanup-command | The command to run after building. | ☐ | | | -| lint | Whether to lint the project. | ☐ | `true`, `false` | `true` | -| format | Whether to format the project. | ☐ | `true`, `false` | `false` | -| test | Whether to run tests. | ☐ | `true`, `false` | `false` | -| build | Whether to build the project. | ☐ | `true`, `false` | `true` | +| Input name | Description | Required | Options | Default value | +|-------------------|--------------------------------------------------------------|----------|-----------------|---------------| +| working-directory | The directory where the project is located. | ☐ | | `.` | +| node-version | The version of Node.js to use. | ☐ | `20.x`, `22.x` | `20.x` | +| artifact-name | The name of the artifact to use. | ☐ | | | +| artifact-path | The path where the artifact should be stored. | ☐ | | | +| prepare-command | The command to run before building (and and after checkout). | ☐ | | | +| cleanup-command | The command to run after building. | ☐ | | | +| lint | Whether to lint the project. | ☐ | `true`, `false` | `true` | +| format | Whether to format the project. | ☐ | `true`, `false` | `false` | +| test | Whether to run tests. | ☐ | `true`, `false` | `false` | +| build | Whether to build the project. | ☐ | `true`, `false` | `true` | ## Docker build Workflow for building a docker image. Useful for, for example, testing if a container build succeeds on a develop branch. @@ -105,11 +105,11 @@ jobs: ### Inputs -| Input name | Description | Required | Options | Default value | -|--------------|-----------------------------------------|----------|------------------------|---------------| -| node-version | The version of Node.js to use. | ☐ | `18.x`, `20.x`, `22.x` | `20.x` | -| version | Version of the NPM release. | ☑ | | | -| lerna | Whether the project is a lerna project. | ☐ | `true`, `false` | `false` | +| Input name | Description | Required | Options | Default value | +|--------------|-----------------------------------------|----------|-----------------|---------------| +| node-version | The version of Node.js to use. | ☐ | `20.x`, `22.x` | `20.x` | +| version | Version of the NPM release. | ☑ | | | +| lerna | Whether the project is a lerna project. | ☐ | `true`, `false` | `false` | ### Secrets | Secret name | Description | Required |