Compare commits

...

4 Commits

Author SHA1 Message Date
Sambo Chea da5660004e
Update npm-publish.yml 2022-05-17 09:31:55 +07:00
Sambo Chea 40bcbbf5ea
Update npm-publish.yml 2022-05-17 09:25:11 +07:00
Sambo Chea cda75a6a39
Create npm-publish.yml 2022-05-17 09:24:26 +07:00
Sambo Chea f2cca8b36b
Create dependabot.yml 2022-05-17 09:23:16 +07:00
2 changed files with 42 additions and 0 deletions

11
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

31
.github/workflows/npm-publish.yml vendored Normal file
View File

@ -0,0 +1,31 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn build
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}