From cf33cc4c92d3ca5eebfbe149521782b85388cfe2 Mon Sep 17 00:00:00 2001 From: Luiz Correia Date: Sun, 1 Aug 2021 15:24:49 -0300 Subject: [PATCH] :construction_worker: feat: add actions --- .github/workflows/pkg_github.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pkg_github.yml diff --git a/.github/workflows/pkg_github.yml b/.github/workflows/pkg_github.yml new file mode 100644 index 0000000..bff74e3 --- /dev/null +++ b/.github/workflows/pkg_github.yml @@ -0,0 +1,23 @@ +name: Node.js Package +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to GitHub Packages + - uses: actions/setup-node@v2 + with: + node-version: '12.x' + registry-url: 'https://npm.pkg.github.com' + # Defaults to the user or organization that owns the workflow file + scope: '@luizcorreia' + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file