diff --git a/.changeset/great-bottles-poke.md b/.changeset/great-bottles-poke.md new file mode 100644 index 0000000..b38d10b --- /dev/null +++ b/.changeset/great-bottles-poke.md @@ -0,0 +1,5 @@ +--- +"@gomaestro/maestro-js": minor +--- + +Initial setup of API endpoints diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3f453d7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,35 @@ +name: Publish +on: + workflow_run: + workflows: ["CI"] + types: + - completed + push: + branches: + - "main" + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + publish: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: "pnpm" + + - run: pnpm install --frozen-lockfile + - name: Create Release Pull Request or Publish + id: changesets + uses: changesets/action@v1 + with: + publish: pnpm run release + env: + GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.CHANGESET_NPM_TOKEN }} diff --git a/package.json b/package.json index f3bd5fe..c046b12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gomaestro/maestro-js", - "version": "1.0.0", + "version": "0.0.0", "description": "A JavaScript/TypeScript SDK for interacting with the https://gomaestro.org API", "main": "dist/index.js", "module": "dist/index.mjs",