Skip to content

setup for packages

setup for packages #1

Workflow file for this run

name: Build and publish to github packages
on:
push:
branches:
- prod
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.11.0
registry-url: https://npm.pkg.github.com/
- name: Configure .npmrc
run: |
echo "@januscaler:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PUBLISH_GITHUB_PACKAGES }}" >> .npmrc
- name: Install Dependencies
run: npm i
- name: Build Package
run: npm run build
- name: Publish Package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_GITHUB_PACKAGES}}