Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

chore(deps): lock file maintenance #124

chore(deps): lock file maintenance

chore(deps): lock file maintenance #124

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
jobs:
deploy:
name: Publish to NPM
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install, lint and build
run: |
npm install
npm version patch --git-tag-version=false
npm run build
- name: Publish to NPM
run: |
echo "access=public" > .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}" >> .npmrc
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}
- name: Update version in git
run: |
git config --global user.name 'Apify Release Bot'
git config --global user.email '[email protected]'
npm install
git add package*.json
git diff-index --quiet HEAD || git commit -m 'chore: bump version [skip ci]'
git push
rebuild-docs:
needs: deploy
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
run: |
gh workflow run docs.yaml --repo apify/apify-docs