Skip to content

v2.1.61

v2.1.61 #53

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
test_and_sync:
uses: apify/fingerprint-suite/.github/workflows/test-and-sync.yml@master
publish_latest:
name: Publish latest
runs-on: ubuntu-latest
needs: [ test_and_sync ]
steps:
- name: Checkout Source code
uses: actions/checkout@v4
with:
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Turbo cache
id: turbo-cache
uses: actions/cache@v4
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: Install Dependencies
run: npm ci
- name: Release latest versions
run: |
git config --global user.name 'Apify Release Bot'
git config --global user.email '[email protected]'
echo "access=public" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
export GIT_TAG=$(echo $GITHUB_REF | sed 's/refs\/tags\///g')
npm run release
env:
NPM_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}
GIT_USER: "[email protected]:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}"
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
- name: Commit the version bump
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: master
commit_message: 'chore: [skip ci] sync new package.json versions'
file_pattern: 'package*.json'
commit_user_name: Apify Bot
commit_user_email: [email protected]
commit_author: Apify Bot <[email protected]>