diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37f10c9a3..52d42d616 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,15 +13,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v2 with: - version: 7 + version: 8 - uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x cache: 'pnpm' - name: Install @@ -74,18 +74,18 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - - uses: actions/checkout@v3 - - - name: Prepare repository - run: git fetch --unshallow --tags + - uses: actions/checkout@v4 + with: + fetch-depth: 100 + fetch-tags: true - uses: pnpm/action-setup@v2 with: - version: 7 + version: 8 - uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x cache: 'pnpm' registry-url: 'https://registry.npmjs.org' diff --git a/scripts/publish-to-npm.mjs b/scripts/publish-to-npm.mjs index 9dd6a181e..8e834097e 100644 --- a/scripts/publish-to-npm.mjs +++ b/scripts/publish-to-npm.mjs @@ -19,7 +19,7 @@ import packageJson from '../package.json' assert { type: 'json' } if (checkStatus() === 'clear') process.exit(0) - commitAndPush({ version, branch }) + commitAndPush({ version }) publishToNPM({ tag: branch === PRODUCTION_BRANCH @@ -79,14 +79,14 @@ function getVersion(packageJson) { } /** - * @param {{ version: string, branch: string }} params + * @param {{ version: string }} params */ -function commitAndPush({ version, branch }) { +function commitAndPush({ version }) { exec(` git config user.name 'Piotr Monwid-Olechnowicz' git config user.email 'hasparus@gmail.com' git commit -am "Bump versions to: ${version} [skip ci]" - git push origin HEAD:${branch} + git push `) }