diff --git a/.github/workflows/prerelease-package.yml b/.github/workflows/prerelease-package.yml new file mode 100644 index 0000000..df8a708 --- /dev/null +++ b/.github/workflows/prerelease-package.yml @@ -0,0 +1,25 @@ +name: Prerelease + +on: + push: + branches: + - 'main' + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '17.x' + - run: npm ci + - run: npm test + - name: Set package registry + run: npm config set registry https://npm.pkg.github.com + - name: Github package registry authentication + run: npm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} + - name: Npm registry authentication + run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + - name: Publish the package to Github and Npm package registries + run: npm publish --tag next diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index b09dc4a..c487f83 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -1,4 +1,4 @@ -name: Node.js Package +name: Release on: release: diff --git a/package.json b/package.json index a24e449..9cf8d92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.10.3", + "version": "0.10.4-rc.0", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js",