diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..c37b1b35 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: Publish to NPM + +on: + release: + types: [created] + +jobs: + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: dev + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm version patch + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index e7e92fa7..b01083a2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "github-pages-deploy-action", "description": "GitHub action for building a project and deploying it to GitHub pages.", - "version": "3.1.2", + "version": "3.2.1", "main": "lib/main.js", "scripts": { "build": "tsc",