add build workflow and update README with build status badge
All checks were successful
build / build (push) Successful in 9s
All checks were successful
build / build (push) Successful in 9s
This commit is contained in:
31
.gitea/workflows/build.yml
Normal file
31
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .gitea/workflows/build.yml
|
||||
- 'src/**'
|
||||
- package.json
|
||||
- package-lock.json
|
||||
- tsconfig.json
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '24'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
- name: Publish package
|
||||
run: |
|
||||
npm config set @slawek:registry=https://gitea.koszewscy.waw.pl/api/packages/slawek/npm/
|
||||
npm config set -- '//gitea.koszewscy.waw.pl/api/packages/slawek/npm/:_authToken' "${{ secrets.CI_TOKEN }}"
|
||||
npm publish --access public
|
||||
Reference in New Issue
Block a user