diff --git a/.github/workflows/npm-package.yml b/.github/workflows/publish-npm-package.yml similarity index 53% rename from .github/workflows/npm-package.yml rename to .github/workflows/publish-npm-package.yml index f06df78..597ec7a 100644 --- a/.github/workflows/npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -1,21 +1,22 @@ -name: npm package +name: Publish npm package to GitHub Packages on: release: - types: [created] + types: [published] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 10 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '16.x' cache: 'yarn' - registry-url: 'http://npm.pkg.github.com' + registry-url: 'https://npm.pkg.github.com' + scope: '@locol23' - run: | yarn yarn build