Skip to content

Commit

Permalink
Merge pull request #10 from razroo/publish-publicaly
Browse files Browse the repository at this point in the history
publish publically
  • Loading branch information
CharlieGreenman authored Apr 22, 2024
2 parents 0034e6f + 40abf96 commit 2d8da7f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set GitHub token
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GitHubToken }}" >> ~/.npmrc
- name: Setup Node
uses: actions/setup-node@v3
env:
NODE_AUTH_TOKEN: ${{ secrets.GitHubToken }}
with:
node-version: '18.x'
registry-url: https://npm.pkg.github.com
scope: '@razroo'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: |
npm ci && npm run build
run: npm ci && npm run build
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GitHubToken }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 2d8da7f

Please sign in to comment.