Skip to content

feat(repository): base code added #1

feat(repository): base code added

feat(repository): base code added #1

Workflow file for this run

name: Package build and release
on:
push:
branches:
- main
paths:
- 'configurations/package/**'
- 'package/**'
- 'scripts/package/**'
- 'src/openapi/**'
- 'src/package/**'
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '21.6.2'
- name: Setup
run: |
npm install
npm ci --cache .npm
id: cache-deps
- name: Generate openapi
run: |
npm run openapi:bundle
npm run openapi:types
- name: Test types
run: |
npm run test:ts
- name: Build package
run: |
npm run package:build
id: cache-package-build
- name: Release
run: |
cd package
npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Token for generate tags on the repo
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Token for publish on npmjs.com