Skip to content

Update npm-publish-github-packages.yml #105

Update npm-publish-github-packages.yml

Update npm-publish-github-packages.yml #105

name: github Package
on:
push:
branches:
- npm-cache-test
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dmitry-shibanov/setup-node@v-dmshib/fix-arm64-for-windows
with:
node-version: 16
cache: 'npm'
registry-url: https://npm.pkg.github.com
- name: Initialize NPM with scope
run: npm init -y --scope ${{ github.repository_owner }}
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GIT_TOKEN}}