Skip to content

Commit

Permalink
try private publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloemendaal committed Nov 7, 2023
1 parent 0c7646b commit be73c1f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,30 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-private-package:
name: Build and publish NodeJS package
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://npm.pkg.github.com/

- run: npm i
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: npm run build

- run: npm publish --new-version $TAG_NAME --tag latest --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.ref }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zonneplan/suncalc",
"version": "2.0.0",
"version": "2.0.1",
"description": "A tiny JavaScript library for calculating sun/moon positions and phases.",
"homepage": "https://github.com/zonneplan/suncalc",
"keywords": [
Expand Down

0 comments on commit be73c1f

Please sign in to comment.