Exported methods and types #5
Workflow file for this run
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
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | |
name: Publish to NPM | |
on: | |
release: | |
types: [created] | |
jobs: | |
Publish: | |
name: Publish Workflow | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Prepare Yarn | |
run: corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn lint:ci | |
- name: Build | |
run: yarn build | |
- name: Configure npm for Authentication | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: Release | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
working-directory: packages/openfortkit |