Bump version to v0.4.0 #4
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: Release Package | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
registry-url: 'https://npm.pkg.github.com' | |
# Defaults to the user or organization that owns the workflow file | |
scope: '@tree-company' | |
- name: Install dependencies | |
run: yarn install | |
- name: Parse tag | |
id: parse_tag | |
run: "echo ${{ github.ref }} | sed 's#^refs/tags/#::set-output name=version::#'" | |
- name: Publish | |
run: yarn workspace @tree-company/eslint-config publish && yarn workspace @tree-company/stylelint-config publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create release | |
id: create_release | |
uses: release-drafter/release-drafter@v6 | |
with: | |
name: ${{ steps.parse_tag.outputs.version }} | |
tag: ${{ steps.parse_tag.outputs.version }} | |
version: ${{ steps.parse_tag.outputs.version }} | |
publish: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |