diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d38e988 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish + +on: + push: + # tags: + # - 'v*' + +permissions: + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7 + - name: Setup Node + uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3 + with: + node-version-file: .nvmrc + cache: 'yarn' + - name: Publish + run: | + echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}'>.npmrc + npm publish \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 8e7fe9a..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,11 +0,0 @@ -stages: - - deploy - -publish: - stage: deploy - image: docker.gamechanger.io/node:16 - script: - - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc - - npm publish - only: - - /^v\d+\.\d+\.\d+$/ diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..3c79f30 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18.16.0 \ No newline at end of file