Skip to content

Setup CI/CD workflow #9

Setup CI/CD workflow

Setup CI/CD workflow #9

Workflow file for this run

name: Dev Release
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
dev-release:
permissions: write-all
name: Dev Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '22.8.0'
- name: Get package version
id: package-version
uses: martinbeentjes/[email protected]
- name: Install dependencies
run: npm install
- name: Build files
run: npm run build
- name: Build tarballs
run: npm run pack
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
draft: false
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload tarballs to release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
files: ./dist/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}