test - update pkg publish #19
This file contains hidden or 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: Test Package Build | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
SSH_IKHOKHA_BOT: ${{ secrets.IKHOKHA_BOT_SSH }} | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
NODE_VERSION: 18.x | |
GITHUB_PACKAGE_TOKEN: ${{ secrets.GHP_ACCESS_TOKEN}} | |
NPM_ACCESS_TOKEN: ${{ secrets.GHP_ACCESS_TOKEN }} | |
jobs: | |
build-pkg: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pkg access | |
uses: ./.github/actions/setup-bot | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{env.NODE_VERSION}} | |
- 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: Dry-run publish package | |
run: npm publish --dry-run |