Skip to content

refactored

refactored #11

Workflow file for this run

name: Publish package to GitHub Packages
on:
push:
branches:
- "*"
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com/tush-tr'
scope: '@octocat'
- run: |
echo $NPM_CONFIG_USERCONFIG
cp $NPM_CONFIG_USERCONFIG .npmrc
ls
cat .npmrc
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}