Skip to content

chore(update): release 1.1.0 πŸš€ #9

chore(update): release 1.1.0 πŸš€

chore(update): release 1.1.0 πŸš€ #9

Workflow file for this run

name: Build & Publish
on:
push:
tags:
- 'v*'
jobs:
install-and-build:
name: πŸ› οΈ Install & Build
runs-on: ubuntu-latest
steps:
- name: πŸ—œοΈ Checkout
uses: actions/checkout@v3
- name: πŸ—œοΈ Setup node version
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: πŸ› οΈ Install
uses: ./.github/actions/cached-deps
- name: πŸ› οΈ Build
run: yarn build
- name: πŸš€ Publish NPM
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
run: cd dist && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: πŸš€ Publish NPM BETA
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == true
run: cd dist && npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# Publish to GitHub Package Registry
- name: πŸ› οΈ Set up package for GPR
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
run: yarn gpr:setup
- name: πŸ› οΈ Use GPR
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@celtian'
- name: πŸš€ Publish to GitHub Package Registry
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
run: |
cd dist
npm publish
env:
NODE_AUTH_TOKEN: ${{github.token}}