nebula/.github/workflows/release.yml

46 lines
965 B
YAML
Raw Normal View History

2024-07-17 15:23:16 -04:00
# This workflow will create a GitHub release every time a tag is pushed
name: Deploy CDN WebComponents
2024-07-17 15:23:16 -04:00
on:
push:
branches:
- "master"
2024-07-17 15:23:16 -04:00
jobs:
release:
2024-12-04 19:11:23 -05:00
permissions:
contents: write
2024-07-17 15:23:16 -04:00
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup Git Config
run: |
bun install
git config user.name "Prad N."
git config user.email "prad@sonr.io"
2024-12-04 21:22:05 -05:00
- name: Build
run: bun run build
2024-12-04 21:22:05 -05:00
- name: 'Automated Version Bump'
run: |
npm version patch
git push
git push --tags
2024-12-04 19:11:23 -05:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-12-04 19:11:23 -05:00
- uses: JS-DevTools/npm-publish@v3
2024-07-17 15:23:16 -04:00
with:
2024-12-04 19:11:23 -05:00
token: ${{ secrets.NPM_TOKEN }}