Skip to content

Merge pull request #3 from apurvjha123/changeset-release/master #14

Merge pull request #3 from apurvjha123/changeset-release/master

Merge pull request #3 from apurvjha123/changeset-release/master #14

Workflow file for this run

name: publish-npm
on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches:
- "master"
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm install
- name: Create PR or Publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}