⚗️ alternative npm registry setup
This commit is contained in:
3
.github/workflows/npm.yml
vendored
3
.github/workflows/npm.yml
vendored
@@ -18,11 +18,12 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '10.x'
|
node-version: '10.x'
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
|
||||||
- name: 👷 Install
|
- name: 👷 Install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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)
|
- name: 📦️ Publish package (github registry)
|
||||||
if: github.ref_name == 'master'
|
if: github.ref_name == 'master'
|
||||||
run: npm publish
|
run: npm publish
|
||||||
|
|||||||
Reference in New Issue
Block a user