1.2.3 - Adjusted TypeScript Config #8
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 : 'Publish to NPM & GitHub' | |
on: | |
release: | |
types : [ created ] | |
jobs: | |
npm: | |
runs-on: ubuntu-latest | |
steps: | |
- name : Checkout Repository | |
uses : actions/checkout@v3 | |
- name : Install Bun | |
uses : oven-sh/setup-bun@v1 | |
- name : Install Dependencies | |
run : bun install | |
- name : Build Project | |
run : bun run build | |
- name : Replace with NPM README | |
run : | | |
rm README.md | |
cp Documentation/NPM.md README.md | |
# | |
# Publish to π‘π£π | |
# | |
- name : Setup NPM Registry | |
uses : actions/setup-node@v3 | |
with : | |
node-version : '21.x' | |
registry-url : 'https://registry.npmjs.org' | |
- name : Publish to NPM | |
if : contains(github.ref, 'tags') | |
run : npm publish --access=public | |
env : | |
NODE_AUTH_TOKEN : ${{ secrets.NPM_Token }} | |
# | |
# Publish to ππΆππππ― | |
# | |
- name : Setup GitHub Registry | |
uses : actions/setup-node@v3 | |
with : | |
registry-url : 'https://npm.pkg.github.com' | |
- name : Publish to GitHub | |
run : npm publish | |
env : | |
NODE_AUTH_TOKEN: ${{ github.token }} |