release v0.24.1 #42
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: 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 }} |