Skip to content

chore: Verify GH actions versions #2950

chore: Verify GH actions versions

chore: Verify GH actions versions #2950

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
packages: write
jobs:
build_test_publish:
name: Build, test and publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Verify actions lockfile
uses: gjtorikian/[email protected]
with:
mode: verify
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: yarn
- name: Build, lint and test
run: |
yarn --immutable
yarn lint
yarn build:ts
yarn test
- name: Release on npm
if: |
github.event_name != 'pull_request' &&
!startsWith(github.event.head_commit.message, 'chore')
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
git config "user.name" "ffflobot"
git config "user.email" "[email protected]"
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
yarn release