diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 6c9a8cc..797de67 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,13 +1,9 @@ -name: Deploy documentation +name: Deploy docs on: - # Run when a release is published - workflow_run: - workflows: ['Publish package'] - types: [completed] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + push: + tags: + - 'v*' # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index cdec943..1cddfd6 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -1,11 +1,12 @@ name: Publish package on: - release: - types: [published] - workflow_dispatch: + push: + tags: + - 'v*' permissions: + id-token: write packages: write jobs: @@ -36,5 +37,3 @@ jobs: - run: npm ci - run: npm run build - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index 776689f..146cc1d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ npm install @danliyev/wishmap ## Usage ```typescript -import { WishMap } from 'wishmap' +import { WishMap } from '@danliyev/wishmap' const map = new WishMap() diff --git a/package-lock.json b/package-lock.json index 3dc5d6c..29a8584 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wishmap", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wishmap", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "devDependencies": { "@types/node": "^25.0.10", diff --git a/package.json b/package.json index bba1f50..23d684d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@danliyev/wishmap", - "version": "1.0.1", + "version": "1.0.2", "description": "An extended JavaScript Map with Array-like methods and event emission.", "main": "dist/index.js", "scripts": {