diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..748a0a8 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,14 @@ +name: Publish to npm +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install dependencies + run: yarn + - name: Publish to npm + run: yarn npm publish --otp ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.yarnrc.yml b/.yarnrc.yml index e810c2b..f5a2766 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,2 +1,7 @@ yarnPath: .yarn/releases/yarn-4.1.1.cjs enableGlobalCache: false +npmPublishAccess: "public" +npmScopes: + bartheleway: + npmPublishRegistry: "https://registry.npmjs.org" + npmAlwaysAuth: true