diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 30885b6..ef9f26d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,9 +5,8 @@ on: branches: [main] jobs: - publish: + publish NPM: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 @@ -22,13 +21,28 @@ jobs: run: npm run build - run: npm ci + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} + publish Github: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: registry-url: "https://npm.pkg.github.com" + + - name: Install dependencies + run: npm install + + - name: Run build + run: npm run build + + - run: npm ci + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_REGISTRY_TOKEN }}