Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish package

on:
release:
types: [published]
workflow_dispatch:
push:
tags:
- 'v*'

permissions:
id-token: write
packages: write

jobs:
Expand Down Expand Up @@ -36,5 +37,3 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @danliyev/wishmap
## Usage

```typescript
import { WishMap } from 'wishmap'
import { WishMap } from '@danliyev/wishmap'

const map = new WishMap<string, number>()

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down