mirror of
https://github.com/wp-statistics/GeoLite2-City.git
synced 2025-12-29 14:12:24 +00:00
Update npm-publish.yml
This commit is contained in:
23
.github/workflows/npm-publish.yml
vendored
23
.github/workflows/npm-publish.yml
vendored
@@ -7,23 +7,16 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# Setup .npmrc file to publish to GitHub Packages
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: 12
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
- run: npm install
|
||||||
# Defaults to the user or organization that owns the workflow file
|
- run: npm test
|
||||||
scope: '@octocat'
|
- uses: JS-DevTools/npm-publish@v1
|
||||||
- run: npm ci
|
with:
|
||||||
- run: npm publish
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user