Skip to content

chore(release): publish with Python 3.12 #217

chore(release): publish with Python 3.12

chore(release): publish with Python 3.12 #217

Workflow file for this run

name: push-master
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_test_publish:
name: Build, test, and publish unstable release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
- run: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test --coverage
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc 2> /dev/null
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- run: git config user.name "Mattr CI"
- run: git config user.email "[email protected]"
- name: Set dry run status
run: |
if [[ "${{ github.event.head_commit.message }}" == *"chore(release): publish"* ]]; then
echo "NOT_DRY_RUN=1" >> $GITHUB_ENV
else
echo "NOT_DRY_RUN=0" >> $GITHUB_ENV
- run: yarn publish:unstable:ts
- name: Report Coverage
uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 # [email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}