Skip to content

Commit 5625b00

Browse files
ci(github): update test.yml
1 parent 8fbd155 commit 5625b00

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: test
22
on: push
33

44
permissions:
5+
contents: read
56
packages: read
67

78
jobs:
@@ -13,16 +14,12 @@ jobs:
1314
uses: actions/setup-node@v6
1415

1516
- name: Configure registry
16-
run: |
17-
cat <<EOF > .npmrc
18-
@remarkablemark:registry=https://npm.pkg.github.com
19-
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
20-
EOF
17+
run: echo "@remarkablemark:registry=https://npm.pkg.github.com" > .npmrc
2118

2219
- name: Install package
2320
run: npm install @remarkablemark/test
2421
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2623

2724
- name: Use package
2825
run: node -p 'require("@remarkablemark/test").hello()'

0 commit comments

Comments
 (0)