From 40abf9645d8bc59dd3088b57871dede21a122184 Mon Sep 17 00:00:00 2001 From: Charlie Greenman Date: Sun, 21 Apr 2024 22:19:26 -0400 Subject: [PATCH] publish publically --- .github/workflows/publish.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 637a673..c0d91eb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file