Skip to content

feat(ci cd): loging in npm #2

feat(ci cd): loging in npm

feat(ci cd): loging in npm #2

name: Publishing new boilerplate version on NPM.
on:
push:
tags:
- "*"
jobs:
build:
if: github.ref == 'refs/heads/feat/CI-CD' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm login ${{ secrets.NPM_TOKEN }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}