README.md #12
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
name: Automated Release Package | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
name: Release Package | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: "https://registry.npmjs.org" | |
- name: Sets up the Bun enviornment | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: "latest" | |
- name: Installing Bun Dependencies | |
run: | | |
bun install . | |
bun install -D jest ts-jest @types/jest typescript | |
- name: Linting and Formatting | |
run: | | |
bun eslint . | |
bunx prettier . --check | |
- name: Running Tests | |
run: | | |
npm test | |
- name: Release Package | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc | |
bun prePublishOnly | |
bun release |