👷 remove publishing to github

This commit is contained in:
Nikolay Kharitonov
2023-12-05 18:40:47 +00:00
parent 6a24415c83
commit 41e5c62095

View File

@@ -13,32 +13,12 @@ jobs:
steps:
- name: ⤵️ Checkout
uses: actions/checkout@v3
# Setup .npmrc file to use GitHub Packages
- name: 🔨 Setup node (github registry)
uses: actions/setup-node@v3
with:
node-version: '10.x'
- name: 👷 Install
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🔐 Setup npm registry (github)
run: npm config set registry https://npm.pkg.github.com
- name: 📦️ Publish package (github registry)
if: github.ref_name == 'master'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 📦️ Publish tagged package (github registry)
if: github.ref_name != 'master'
run: npm publish --tag ${{ github.ref_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🔨 Setup node (npmjs)
uses: actions/setup-node@v3
with:
node-version: '10.x'
registry-url: 'https://registry.npmjs.org'
- name: 📦️ Publish package (npmjs)
if: github.ref_name == 'master'
run: npm publish