Skip to content

feat: node version 18 #8

feat: node version 18

feat: node version 18 #8

name: Publish Package to npmjs
on:
push:
tags:
- '*'
branches:
- 'main'
paths:
- "btp-cap-monorepo/**"
jobs:
build:
runs-on: ubuntu-latest
environment:
name: Prod
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
working-directory: ./btp-cap-monorepo
- run: yarn nx build odata
working-directory: ./btp-cap-monorepo
- run: npm publish --access public --tag latest
working-directory: ./btp-cap-monorepo/dist/packages/odata
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}