Skip to content

Commit

Permalink
Style: update relase and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
khoilen committed Jan 10, 2025
1 parent f49ebf7 commit f8cd8bd
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/publish-nt-css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,48 @@ on:
types: [closed]

jobs:
# build-and-publish:
# if: >
# (github.event_name == 'workflow_dispatch' ||
# (github.event.pull_request.merged == true &&
# github.event.pull_request.base.ref == 'main' &&
# contains(github.event.pull_request.head.ref, 'bump-nt-stylesheet')))
# runs-on:
# ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
build-and-publish:
if: >
(github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
github.event.pull_request.base.ref == 'main' &&
contains(github.event.pull_request.head.ref, 'bump-nt-stylesheet')))
runs-on:
ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

# - name: Authenticate with npm
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > ~/.npmrc
- name: Authenticate with npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > ~/.npmrc

# - name: Install pnpm
# run: npm install -g pnpm
- name: Install pnpm
run: npm install -g pnpm

# - name: Install dependencies
# run: pnpm install --frozen-lockfile
# working-directory: apps/nt-stylesheet
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: apps/nt-stylesheet

# - name: Build CSS framework
# run: pnpm run build
# working-directory: apps/nt-stylesheet
- name: Build CSS framework
run: pnpm run build
working-directory: apps/nt-stylesheet

# - name: Publish to npm
# run: npm publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
# working-directory: apps/nt-stylesheet
- name: Publish to npm
run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
working-directory: apps/nt-stylesheet

create-github-release:
name: Create GitHub Release
runs-on: ubuntu-latest
# needs: build-and-publish
needs: build-and-publish
permissions:
contents: write
steps:
Expand Down

0 comments on commit f8cd8bd

Please sign in to comment.