@gkucmierz/utils 1.1.0
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.
- package/.github/workflows/npm-publish.yml +25 -0
- package/README.md +6 -0
- package/package.json +11 -0
- package/src/main.mjs +2 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: npm-publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main # Change this to your default branch
|
|
6
|
+
jobs:
|
|
7
|
+
npm-publish:
|
|
8
|
+
name: npm-publish
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout repository
|
|
12
|
+
uses: actions/checkout@v2
|
|
13
|
+
- name: Publish if version has been updated
|
|
14
|
+
uses: pascalgn/npm-publish-action@1.3.9
|
|
15
|
+
with: # All of theses inputs are optional
|
|
16
|
+
tag_name: "v%s"
|
|
17
|
+
tag_message: "v%s"
|
|
18
|
+
create_tag: "true"
|
|
19
|
+
commit_pattern: "^Release (\\S+)"
|
|
20
|
+
workspace: "."
|
|
21
|
+
publish_command: "yarn"
|
|
22
|
+
publish_args: "--non-interactive --access public"
|
|
23
|
+
env: # More info about the environment variables in the README
|
|
24
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
|
|
25
|
+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
|
package/README.md
ADDED
package/package.json
ADDED
package/src/main.mjs
ADDED