diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml deleted file mode 100644 index 1255c4a..0000000 --- a/.github/workflows/npm-publish.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages - -name: Node.js Package - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: npm ci - - run: npm test - - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://registry.npmjs.org/ - - name: Check package version - uses: technote-space/package-version-check-action@v1 - with: - COMMIT_DISABLED: 1 - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7933e36 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,42 @@ +name: Publish + +on: + release: + types: [published] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ^14.17.3 + registry-url: https://registry.npmjs.org + - name: Check package version + uses: technote-space/package-version-check-action@v1 + with: + COMMIT_DISABLED: 1 + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} + publish-github: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ^14.17.3 + - name: Check package version + uses: technote-space/package-version-check-action@v1 + with: + COMMIT_DISABLED: 1 + - run: npm ci + - uses: actions/setup-node@v2 + with: + node-version: ^14.17.3 + registry-url: 'https://npm.pkg.github.com' + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/README.md b/README.md index d270cd0..15e4fd0 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ # Tailwind CSS Color Properties -![version](https://img.shields.io/npm/v/tailwindcss-css-properties) -![npm bundle size](https://img.shields.io/bundlephobia/min/tailwindcss-css-properties) -![npm bundle size](https://img.shields.io/bundlephobia/minzip/tailwindcss-css-properties) -![downloads](https://img.shields.io/npm/dt/tailwindcss-css-properties) -![license](https://img.shields.io/npm/l/tailwindcss-css-properties) +![version](https://img.shields.io/npm/v/@marcreichel/tailwindcss-css-properties) +![npm bundle size](https://img.shields.io/bundlephobia/min/@marcreichel/tailwind-css-properties) +![npm bundle size](https://img.shields.io/bundlephobia/minzip/@marcreichel/tailwind-css-properties) +![downloads](https://img.shields.io/npm/dt/@marcreichel/tailwind-css-properties) +![license](https://img.shields.io/npm/l/@marcreichel/tailwind-css-properties) A Tailwind CSS plugin that exports theme colors as css custom properties. ## Installing ``` -npm install tailwindcss-css-properties +npm install @marcreichel/tailwind-css-properties ``` or ``` -yarn add tailwindcss-css-properties +yarn add @marcreichel/tailwind-css-properties ``` Require in your Tailwind config: @@ -26,7 +26,7 @@ Require in your Tailwind config: module.exports = { /* ... */ plugins: [ - require('tailwindcss-css-properties') + require('@marcreichel/tailwind-css-properties') ] } ``` diff --git a/package-lock.json b/package-lock.json index 7d562fe..a6fa3e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,13 @@ { - "name": "tailwindcss-css-properties", - "version": "1.5.0", - "lockfileVersion": 1 + "name": "@marcreichel/tailwind-css-properties", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "@marcreichel/tailwind-css-properties", + "version": "1.0.0", + "license": "MIT" + } + } } diff --git a/package.json b/package.json index 40b7569..e9c91a3 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "tailwindcss-css-properties", - "version": "1.5.0", + "name": "@marcreichel/tailwind-css-properties", + "version": "0.0.0", "description": "A Tailwind CSS plugin that exports theme colors as css custom properties.", - "main": "index.js", + "main": "src/index.js", "scripts": { "test": "echo \"No test specified\"" }, @@ -26,7 +26,7 @@ "files": [ "LICENSE", "README.md", - "index.js", + "src/index.js", "package.json" ] } diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js