Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WarstekHUN committed Aug 2, 2023
1 parent c240b3c commit 8ce883d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ name: Publish

on:
release:
types: [created]
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Setup .npmrc file to publish to npm
Expand All @@ -15,11 +18,9 @@ jobs:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: npm install
- name: Build and generate coverage badges
run: npm run build
run: npm ci
- name: Publish to npm
run: npm publish --access public
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup .npmrc file to publish to GitHub Packages
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,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "typescript-npm-package-template",
"version": "1.0.0",
"version": "1.0.1",
"description": "Typescript NPM package template that is ready for NPM and Github Packages publish.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 8ce883d

Please sign in to comment.