Skip to content

release v0.27.1

release v0.27.1 #46

Workflow file for this run

name: Generate a release of LowCSS
## This workflow is limited only when a new tag is created
on:
push:
tags: ["*"]
## Set permissions to the github token
## https://github.com/softprops/action-gh-release#permissions
permissions:
contents: write
jobs:
release:
if: ${{ github.repository == 'jmjuanes/lowcss' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: yarn install
- run: yarn run build
- run: yarn run pack
- uses: softprops/action-gh-release@v1
with:
files: lowcss.zip
publish:
if: ${{ github.repository == 'jmjuanes/lowcss' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/download-artifact@v3
- run: yarn install
- run: yarn build
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}