Skip to content

Commit

Permalink
Testing npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
troychaplin committed Feb 24, 2024
1 parent c62ba71 commit a288f87
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org
node-version: "21.x"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies and build 🔧
run: npm ci && npm run build

- run: yarn install
- run: yarn build
- run: npm publish --access public
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a288f87

Please sign in to comment.