Skip to content

Commit

Permalink
Merge branch 'hotfix/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Aug 30, 2022
2 parents 2c1086e + 5664301 commit 6b0a301
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 34 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/npm-publish.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Release

on:
push:
tags:
- '*.*.*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'

- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
registry-url: https://registry.npmjs.org/

- run: |
cd packages/tailwind-config
ls -al
VERSION=${GITHUB_REF/refs\/tags\//}
TAG='latest'
if [[ $VERSION =~ 'alpha' || $VERSION =~ 'beta' || $VERSION =~ 'rc' ]]; then
TAG='next'
fi
npm publish --tag $TAG
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
# @see https://github.com/actions/create-release/issues/38#issuecomment-715327220
# @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files
- name: Prepare the changelog from the tag message
id: prepare_changelog
run: |
# Parse version
VERSION=${GITHUB_REF/refs\/tags\//}
echo "Setting release version to $VERSION"
echo "release_version=$VERSION" >> $GITHUB_ENV
echo "$GITHUB_REF"
echo "$GITHUB_REF_NAME"
PRERELEASE=false
# Check release type
if [[ $VERSION =~ 'alpha' || $VERSION =~ 'beta' || $VERSION =~ 'rc' ]]; then
echo "This is a prerelease."
PRERELEASE=true
fi
echo "is_prerelease=$PRERELEASE" >> $GITHUB_ENV
# @see https://github.com/actions/create-release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: v${{ env.release_version }}
draft: false
prerelease: ${{ env.is_prerelease }}
2 changes: 0 additions & 2 deletions readme.md → README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Tailwind config

[![NPM Version](https://img.shields.io/npm/v/@studiometa/tailwind-config.svg?style=flat-square)](https://www.npmjs.com/package/@studiometa/tailwind-config)
[![Dependency Status](https://img.shields.io/david/studiometa/tailwind-config.svg?label=deps&style=flat-square)](https://david-dm.org/studiometa/tailwind-config)
[![devDependency Status](https://img.shields.io/david/dev/studiometa/tailwind-config.svg?label=devDeps&style=flat-square)](https://david-dm.org/studiometa/tailwind-config?type=dev)

> A custom Tailwind CSS configuration.
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"workspaces": [
"packages/**/*"
],
"version": "1.1.0",
"version": "2.0.1",
"description": "A custom Tailwind CSS config",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/tailwind-config-docs",
"version": "1.1.0",
"version": "2.0.1",
"private": true,
"scripts": {
"dev": "vuepress dev .",
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwind-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/tailwind-config",
"version": "1.1.0",
"version": "2.0.1",
"description": "A custom Tailwind CSS config",
"main": "index.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/tailwind-config-tests",
"version": "1.1.0",
"version": "2.0.1",
"private": true,
"scripts": {
"dev": "meta dev",
Expand Down

0 comments on commit 6b0a301

Please sign in to comment.