@thiagormoreira/nightwind 1.2.0 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,8 @@ on:
5
5
  branches:
6
6
  - main
7
7
  - master
8
+ tags:
9
+ - 'v*.*.*'
8
10
  pull_request:
9
11
 
10
12
  jobs:
@@ -13,7 +15,7 @@ jobs:
13
15
 
14
16
  strategy:
15
17
  matrix:
16
- node-version: [16.x, 18.x, 20.x]
18
+ node-version: [18.x, 20.x, 22.x]
17
19
 
18
20
  steps:
19
21
  - name: Checkout code
@@ -33,3 +35,21 @@ jobs:
33
35
 
34
36
  - name: Run Tests
35
37
  run: npm run test
38
+
39
+ publish:
40
+ needs: test
41
+ if: startsWith(github.ref, 'refs/tags/v')
42
+ runs-on: ubuntu-latest
43
+ permissions:
44
+ contents: read
45
+ id-token: write
46
+ steps:
47
+ - uses: actions/checkout@v4
48
+ - uses: actions/setup-node@v4
49
+ with:
50
+ node-version: 20
51
+ registry-url: 'https://registry.npmjs.org'
52
+ - run: npm ci
53
+ - run: npm publish --provenance --access public
54
+ env:
55
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thiagormoreira/nightwind",
3
- "version": "1.2.0",
3
+ "version": "1.2.9",
4
4
  "description": "An automatic, overridable, customisable Tailwind dark mode plugin",
5
5
  "main": "src/index.js",
6
6
  "repository": {