packages_speech_bubble/.forgejo/workflows/ci.yml
jolts b6e5c5b1e4
Some checks are pending
CI / build-and-publish (push) Waiting to run
refactor CI workflow to build and publish with Node.js 18.x
2025-01-25 07:15:40 +02:00

31 lines
586 B
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}