diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 000000000..4560bffa4 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,30 @@ +name: Pull request + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.15.1 + - run: yarn install + - run: yarn build + publish: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 16.15.1 + registry-url: https://registry.npmjs.org/ + - run: yarn install + - run: yarn build + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} diff --git a/index.html b/index.html index 1963bf668..74c612637 100644 --- a/index.html +++ b/index.html @@ -31,6 +31,8 @@