Skip to content

Commit

Permalink
bump to 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandawg93 committed Jun 1, 2024
1 parent c9379a2 commit e7555a2
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish

on:
release:
types: [published]

jobs:
publish-npm:
if: '!github.event.release.prerelease'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v4
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: |
${{ env.STORE_PATH }}
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: pnpm i
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

A collection of animations to subtly nudge users to your React components.

_Note:_ This package is currently in beta. More to come!

[![NPM version](https://img.shields.io/npm/v/react-subtle-nudge.svg?style=flat)](https://npmjs.com/package/react-subtle-nudge)
[![NPM downloads](https://img.shields.io/npm/dm/react-subtle-nudge.svg?style=flat)](https://npmjs.com/package/react-subtle-nudge)
[![Storybook](https://raw.githubusercontent.com/storybookjs/brand/master/badge/badge-storybook.svg)](https://brandawg93.github.io/react-subtle-nudge/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-subtle-nudge",
"version": "0.1.0-beta.1",
"version": "0.1.0",
"description": "A collection of animations to subtly nudge users to your React components.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit e7555a2

Please sign in to comment.