This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
Merge pull request #647 from on2ts/dependabot/npm_and_yarn/n3-1.17.3 #1520
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
check_suite: | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '15' | |
- run: npm ci | |
- run: npm test | |
- name: Configure CI Git User | |
run: | | |
git config --global user.name '@jeswr' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/on2ts/ontologies | |
env: | |
GITHUB_PAT: ${{ secrets.GH_TOKEN }} | |
- name: Checkout and pull branch | |
run: git checkout "${GITHUB_REF:11}" && git pull | |
- name: Install Packages | |
run: yarn install | |
- name: Authenticate with Registry | |
run: | | |
yarn logout | |
echo "@on2ts:registry=http://registry.npmjs.org/" > .npmrc | |
echo "registry=http://registry.npmjs.org/" >> .npmrc | |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc | |
npm whoami | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish package | |
run: | | |
npx lerna publish --yes --conventional-commits --no-private --message "chore: release new versions" | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |