Skip to content

Commit

Permalink
Add publish script (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek authored Jan 10, 2025
1 parent a5f10ff commit 1c65347
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Typecheck
run: pnpm typecheck

- name: Run tests
run: pnpm test:ci

- name: Build
run: pnpm build

- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@swan-io/css",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"description": "An atomic CSS-in-JS library inspired by React Native StyleSheet",
"description": "A lightweight and performant atomic CSS-in-JS library",
"author": "Mathieu Acthernoene <[email protected]>",
"homepage": "https://github.com/swan-io/bot-detector",
"repository": {
Expand Down

0 comments on commit 1c65347

Please sign in to comment.