Skip to content

Commit 6f67928

Browse files
Merge pull request #2 from ava-cassiopeia/no-github-secrets
Don't use github secrets in action
2 parents 16dcad1 + 1f34e2d commit 6f67928

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ inputs:
77
github-package-name:
88
description: 'The name of the package to publish on GitHub. This must always start with your "@" GitHub username, eg. "@foobar/my-package".'
99
required: true
10+
npm-token:
11+
description: 'The auth token to NPM.'
12+
required: true
13+
github-token:
14+
description: 'The auth token to GitHub.'
15+
required: true
1016
runs:
1117
using: "composite"
1218
steps:
@@ -23,7 +29,7 @@ runs:
2329

2430
- name: Publish to NPM
2531
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
2733
run: |
2834
npm publish
2935
@@ -40,6 +46,6 @@ runs:
4046

4147
- name: Publish to GitHub Packages
4248
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NODE_AUTH_TOKEN: ${{ inputs.github-token }}
4450
run: |
4551
npm publish

0 commit comments

Comments
 (0)