Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore: publish workflow
Browse files Browse the repository at this point in the history
mzahor committed Mar 24, 2020
1 parent 8e57eed commit 5a543b8
Showing 6 changed files with 51 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[*.yml]
indent_size = 2
indent_style = space

[*]
indent_size = 4
indent_style = space
3 changes: 3 additions & 0 deletions .github/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
printWidth: 120
tabWidth: 2
singleQuote: true
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build PR
on: [push]

jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: foo
AWS_SECRET_ACCESS_KEY: bar
steps:
- uses: actions/checkout@v2
- name: install
run: yarn
- name: build
run: yarn run build
- name: run localstack
run: docker-compose up -d
- name: wait for localstack
run: ./scripts/wait-for-url.js http://localhost:4575 && sleep 5
- name: test
run: yarn test
22 changes: 0 additions & 22 deletions .github/workflows/ci-build.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# https://help.github.com/en/actions/language-and-framework-guides/publishing-nodejs-packages#publishing-packages-using-yarn
name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
scope: '@octocat' # Defaults to the user or organization that owns the workflow file
- run: yarn
- run: yarn build
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sns-sqs-big-payload",
"version": "1.0.0",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"test": "jest",

0 comments on commit 5a543b8

Please sign in to comment.