Skip to content

feat: deprecate CType meta schema draft-01 (#778) #634

feat: deprecate CType meta schema draft-01 (#778)

feat: deprecate CType meta schema draft-01 (#778) #634

name: Publish dev package to npm
on:
push:
branches:
- develop
paths:
- '**/*.ts'
- 'package.json'
- '**/package.json'
- '!**/*.spec.ts'
- '!**/__integrationtests__'
- '!**/__mocks__'
- '!docs/**'
jobs:
build:
runs-on: ubuntu-latest
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'kiltprotocol/sdk-js'"
steps:
- uses: actions/checkout@v3
with:
# fetch-depth 0 and token needed to push changes on the package.json files back.
fetch-depth: 0
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Bump prerelease version of root package
run: npm version --no-git-tag-version prerelease
- name: Get current package version
id: package_version
run: echo "package_version=$(node -pe "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Set all other packages to same version
env:
PACKAGE_VERSION: ${{ steps.package_version.outputs.package_version }}
run: yarn set:version $PACKAGE_VERSION --allow-same-version
- name: Build packages
run: yarn run build
- name: Bundle library
run: yarn run bundle
- name: Publish to npm
run: yarn run publish --tag dev
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.npm_token }}
- name: Commit files
run: |
git config --local user.name "Github Action"
git config --local user.email "action@github.com"
git add .
git commit -m "[CI Skip] ci: publish prerelease" -n
git push