Skip to content

Merge pull request #6 from ikhokha/feature/cicd #3

Merge pull request #6 from ikhokha/feature/cicd

Merge pull request #6 from ikhokha/feature/cicd #3

Workflow file for this run

name: Publish Package
on:
push:
branches: [main]
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GHP_ACCESS_TOKEN}}
# NPM_ACCESS_TOKEN: ${{ secrets.GHP_ACCESS_TOKEN }}
NPM_ACCESS_TOKEN: ${{ secrets.NPM_PKG_TOKEN }}
jobs:
publish-pkg:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Copying config files
run: cp ./.npmrc ~/.npmrc
shell: bash
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
# - name: Linting
# run: yarn lint --format junit -o reports/junit/js-lint-results.xml
- name: Typechecking
run: yarn typecheck
- name: Publish npm pkg
run: npm publish