Skip to content

Commit

Permalink
Added publish.yml along with a changeset to get version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhxyz committed Sep 4, 2023
1 parent 13bf2c2 commit bc822c0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-bottles-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@gomaestro/maestro-js": minor
---

Initial setup of API endpoints
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit bc822c0

Please sign in to comment.