diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c9b028c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish + +on: workflow_dispatch + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup + + - name: Prepare + run: yarn prepare + + - name: Publish + run: yarn npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.yarnrc.yml b/.yarnrc.yml index 13215d6..744062a 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -8,3 +8,4 @@ plugins: spec: "@yarnpkg/plugin-workspace-tools" yarnPath: .yarn/releases/yarn-3.6.1.cjs +npmAuthToken: ${ NPM_AUTH_TOKEN }