We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b21e2b7 commit 8237fd0Copy full SHA for 8237fd0
.github/workflows/publish.yml
@@ -54,6 +54,7 @@ jobs:
54
# Define environment variables:
55
env:
56
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
57
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
58
59
# Define the sequence of job steps...
60
steps:
@@ -73,6 +74,10 @@ jobs:
73
74
- name: 'Increment package version (if requested)'
75
if: ${{ github.event.inputs.version != 'none' }}
76
run: |
77
+ # Save NPM_TOKEN to .npmrc:
78
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
79
+
80
+ # Increment package version:
81
npm version ${{ github.event.inputs.version }}
82
83
# Replace GitHub links to individual packages with npm links:
0 commit comments