rename @uswriting/openauth -> @6over3/openauth #16
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: release | |
| on: | |
| push: | |
| branches: | |
| - uswc | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| packages: write | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies with Bun | |
| run: bun install | |
| - name: Build openauth package | |
| run: bun run --filter="@6over3/openauth" build | |
| # Setup Node so that npm publish works properly. | |
| - name: Setup Node for publishing | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| registry-url: "https://npm.pkg.github.com" | |
| scope: "@6over3" | |
| # Create an .npmrc file inside the package directory for GitHub Packages authentication | |
| - name: Configure npm for GitHub Packages | |
| run: | | |
| echo "@6over3:registry=https://npm.pkg.github.com" > packages/openauth/.npmrc | |
| echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> packages/openauth/.npmrc | |
| - name: Publish openauth package | |
| working-directory: packages/openauth | |
| run: npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |