-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 755 Bytes
/
test.yml
File metadata and controls
33 lines (26 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: test
on: push
permissions:
packages: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Use Node.js
uses: actions/setup-node@v6
- name: Configure registry
run: |
cat <<EOF > .npmrc
@remarkablemark:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
EOF
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install package
run: npm install @remarkablemark/test
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: List package
run: npm ls @remarkablemark/test
- name: Use package
run: node -p 'require("@remarkablemark/test").hello()'