ci(github): fix token in test.yml #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| @my-org:registry=https://npm.pkg.github.com | |
| //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} | |
| EOF | |
| - name: Install package | |
| run: npm install @remarkablemark/test | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Use package | |
| run: node -p 'require("@remarkablemark/test").hello()' |